You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Neil Pitman <ne...@mahjongmania.com> on 2005/08/26 19:09:48 UTC

Partial parsing

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


Re: Partial parsing

Posted by Fredrik Vraalsen <fr...@vraalsen.no>.
Jochen Wiedmann wrote:
> 
> See http://issues.apache.org/jira/browse/JAXME-66
> 
> In other words: As of yet, this is still unsupported. I don't know,
> whether Fredrik is working on it or not, but I do know, that the feature
> requires a real lot of changes, so it is unlikely to be realized within
> the next weeks.

Hi Jochen,

No, I'm afraid I haven't had a chance lately to look at it, but
hopefully things will calm down a bit at work soon.

Fredrik

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: Partial parsing

Posted by Jochen Wiedmann <jo...@gmail.com>.
Neil Pitman wrote:

> 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.  

See http://issues.apache.org/jira/browse/JAXME-66

In other words: As of yet, this is still unsupported. I don't know, 
whether Fredrik is working on it or not, but I do know, that the feature 
requires a real lot of changes, so it is unlikely to be realized within 
the next weeks.


Sorry,

Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org