问题
In my J2ME Application, I can get the xml data as a string from Server, but I can't be able to read the tag and its elements through code. Please suggest me some solution for it.
回答1:
If your target device has JSR 172 you can use SAX or DOM
.
If not you can try kxml2. There is a nice introduction to it at http://www.developer.nokia.com/Community/Wiki/XML_Parser_in_Java_ME
来源:https://stackoverflow.com/questions/12858576/xml-dom-parsing-in-j2me