I'm making an alternative for the GUI stand-alone SDK Manager (it's gone on Android SDK 25), I've found in Android Studio the required XMLs to retrieve packages.
Android Repository https://dl.google.com/android/repository/repository2-1.xml
Android System Images https://dl.google.com/android/repository/sys-img/android/sys-img2-1.xml
Android TV System Images https://dl.google.com/android/repository/sys-img/android-tv/sys-img2-1.xml
Android Wear System Images https://dl.google.com/android/repository/sys-img/android-wear/sys-img2-1.xml
Glass Development Kit, Google Inc. https://dl.google.com/android/repository/glass/addon2-1.xml
Google API add-on System Images https://dl.google.com/android/repository/sys-img/google_apis/sys-img2-1.xml
Google API with Playstore System Images https://dl.google.com/android/repository/sys-img/google_apis_playstore/sys-img2-1.xml
Google Inc. https://dl.google.com/android/repository/addon2-1.xml
Intel HAXM https://dl.google.com/android/repository/extras/intel/addon2-1.xml
Offline Repo file:/C:/Program%20Files/Android/Android%20Studio/plugins/sdk-updates/offline-repo/offline-repo.xml
I want to check what packages are installed, what are available for update and what aren't installed but available for download.
EDIT: I know how to parse, I'm not sure at all if path
attribute is a reliable way to check.