|
I want to use JAXME to
partially parse messages. I need to parse the outer two levels of some
large and varied messages so that I can route them internally. Once
routed, the legacy system needs a DOM, so I neither care to define the XSD for
all the various and sundry bodies, nor do I need the parsed data. Is
there a way of parsing the selected elements/attributes towards the root, and
then dump the internals into a String variable. As an example I’d
like: <myroot session=”s1”> <body/> </myroot> <myroot session=”s2”> <body><a><a><a><a></a></a></a></a><a><a></a></a></body> </myroot> To parse into objects
like: Myroot.session = “s1” Myroot.body = “”
(or null) And, Myroot.session = “s2” Myroot.body = “<a><a><a><a></a></a></a></a><a><a></a></a>” Respectively. Any ideas? Thanks, Neil |
- Partial parsing Neil Pitman
- Re: Partial parsing Jochen Wiedmann
- Re: Partial parsing Fredrik Vraalsen
