@Preston,
The test file I'm working with is only 503 bytes, and is roughly
1/14th the size of what the actual data sent will be. It looks like
this:
<resultset>
<result key="some_key" value="some_value" />
<!-- repeat <result> tag 3 more times -->
<!-- this is the summary/overview for all following resultsets -->
</resultset>
<resultset>
<result key="some_key" value="some_value" />
<!-- repeat 6 more times -->
</resultset>
...repeat the second <resultset> approximately 14 times.
This will be my first time actually having to parse xml, previously
I've used JAXB for Java which makes short work of things if you have
an XSD. JAXB simply creates Java objects based on the XSD, which you
can then use to easily retrieve your xml data. I'm guessing that
node.js does not have anything that sophisticated yet? Ideally, I'm
looking to get this into a JSON object as soon as I can, but
unfortunately it has to be after I receive it as xml via udp...
BELIEVE me when I say I really tried to push for JSON to be created
and sent over udp, but we just don't have the resources and time at
this point to go back and re-work that section of the project. :( At
any rate, should I be looking at a SAX parser to parse the xml snippet
above? Does this make any sense?
Cheers,
Eric