Hi Alan
xmlDoc is the sample input XML file which contains
"<wrapper><myIntVal>200</myIntVal></wrapper>"
NamedStaxOMBuilder is a StaxOMBuilder which takes a Qname parameter
which wraps the element you want the builder to process..since we want to
only process wrapper XML Node
we'll use the QName which only wraps the desired XML chunk
in this case..
new QName("wrapper")
extracted from the Axis2-1.3 sample supplied located in your Axis2-1.3
distro at
org.apache.axis2.databinding.utils.NamedStaxOMBuilderTest.java
Thanks
Martin-
----- Original Message -----
From: "A Sunley" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 09, 2008 4:21 PM
Subject: Re: POJOto OMElement
>
> Hi Martin,
>
> I'm a bit confused as to what NamedStaxOMBuilder is meant to achieve.
Where
> is the "xmlDoc" string used?
>
> Thanks,
> Alan.
>
>
> Al-
> the simplest case uses NamedStaxOMBuilder
>
> package org.apache.axis2.databinding.utils;
>
> String xmlDoc = "<wrapper><myIntVal>200</myIntVal></wrapper>";
> XMLStreamReader reader = BeanUtil.getPullParser( businessObject );
> NamedStaxOMBuilder builder=NamedStaxOMBuilder(xmlStreamReader, new
> QName("wrapper"));
> OMElement element =builder.getOMElement();
>
> HTH
> Martin
> --
> View this message in context:
http://www.nabble.com/POJOto-OMElement-tp16590554p16595882.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]