Android XML Parsing Technology

Which Parser is used by the Android platform to analyze manifest files and layout files? Can we also use the same in our application. I am trying to get an xml parser at best, while maintaining performance, memory, and reliability. Ofcourse depends on the size of the xml.

+5
source share
1 answer

Without missing all the AOSP code, it's hard to say. Unfortunately, I don’t even know where to ask to go through all this code.

However, the javax.xml libraries. * Included in VM Dalvik. Dalvik V.M. It has been a deactivated virtual machine since the beginning of Android (I saw it because now in Lollipop, the standard is ART) Thus, it is probably a pretty safe bet to assume that the Android Framework uses javax.xml.parsers to parse xml files from apk files.

+1
source

Source: https://habr.com/ru/post/1209060/


All Articles