Good Evening Al-

I believe the current operational characteristics are to only serialize each
fully-encompassing Bus Object to XML
(the All or nothing scenario..)

It would certainly be useful to have either
Ability to graft on additional branches
prune unneccessary branches
(Ive heard of XStream's XMLTransient being used as a way to mask off
unnecessary branches)
I havent seen anyone work out the mechanics of how this would integrate to
either Stax<Builder> or Axiom
but in Axis-2.1.3 I have seen XMLTransient masking EndpointReferenece e.g.
@XmlTransient
public abstract class EndpointReference {

Would'nt we all like Xpath capability as Axiom's
org.apache.apache.ws.commons.om.AXIOMXPath?
there is a nice little test harness located at
org.apache.ws.commons.xpath.AXIOMXPathTest I recommend

JIRA may be the best way to request either prune/graft operations for
Stax Builder classes
http://jira.codehaus.org/browse/STAX-32

<..Input from one and all gratefully acknowledged..>

FWIW
Martin-
----- Original Message -----
From: "A Sunley" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 09, 2008 6:29 PM
Subject: Re: POJOto OMElement


>
> Hi,
>
> Am I able to omit variables from being included in the OMElement using
this
> method? I'm not seeing I can use this method to convert a business object.
>
> I'm thinking one method may be to add a getOMElement() method to the
> business object, but I'm reluctant to tie the business object to the Axis
> library.
>
> Regards,
> Alan.
>
>
> mgainty wrote:
> >
> > 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-
> >
>
> --
> View this message in context:
http://www.nabble.com/POJOto-OMElement-tp16590554p16598316.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]

Reply via email to