开发者

how to parsing of xml in mosync ide [closed]

开发者 https://www.devze.com 2023-03-02 09:06 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its curre开发者_Go百科nt form. F
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its curre开发者_Go百科nt form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

i am sending a request to server and receive an response as an form of xml but i want to parse it so which method i should prefer...


If your question is "How to parse XML" just use something simple as eXpat (SAX parser) or plug into something more sophisticated like Xerces (SAX & DOM parser) or libxml2.

From your headline it seems you are using mosync, which already provides XML parsing http://www.mosync.com/documentation/tutorials/processing-xml

If your question is "How to choose between SAX and DOM parsing" just read the wikipedia articles on SAX http://en.wikipedia.org/wiki/Simple_API_for_XML , stating benefits and drawbacks. It basically comes down to "SAX requires less resources but DOM might be easier to use".

Otherwise please describe your problem in more detail.

0

精彩评论

暂无评论...
验证码 换一张
取 消