When to parse XML strings
A little background. I've created an application using Java LiveConnect technology
that receives an request (like an parts request) from a html page (using
in the html page through the java applett. The program works just fine so
I have no problems there. To make it short, when I send a request the argument
looks like the following:
mom.send("<EXEC><PART>" + partnum + "</PART><LOCATION>" + loc + "</LOCATION><AVAIL>"
+ instock + "</AVAIL></EXEC>");
Note that my string I pass is an XML string. The data I receive back from
the backend through the Java session it will look the same but all of the
variable fields will be filled with data. Finally my question.
When would be the proper time to parse this XML string?
I could parse it using Java at the applett before I actually send it back
page, I could send back the XML arguments one at a time as I parse them.
to just use string functions to parse it at this level. The end result is
I need to update fields that fill my html page by parsing the XML string
page using an XML string? The XML string may contain as much as 100+ arguments
when passed back and forth if this makes a difference. Just asking for opinions
here from anyone who may have done this and ran into any problems either
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center