there is a method XmlObject.newDomNode()
http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlTokenSource.html#newDomNode()
There is also newCursor if you wanted to use the XmlCursor APIs

On Dec 21, 2007 11:48 AM, dave <[EMAIL PROTECTED]> wrote:
>
> how would you combine DOM apis with XMLBeans generated
> interfaces to add such PIs into the instance being
> generated?
> sample code would help..
> -D
>
> --- Jacob Danner <[EMAIL PROTECTED]> wrote:
>
> > I would suggest trying out the XmlCursor APIs. If
> > you aren't
> > comfortable with them, you can always try using the
> > DOM APIs too.
> >
> > Otherwise, I don't know of a 'convenience' method
> > like the getters and
> > setters on an XmlObject that would add this for you.
> > You may want to try XmlObject.set(XmlObject) where
> > your XmlObject is
> > your PI. (I have no idea if this will actually work
> > thought, just FYI)
> >
> > -jacobd
> >
> > On Dec 20, 2007 12:19 AM, dave <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > I am just using factory classes to create new XML
> > > instance. Are there any apis to add processing
> > > instruction like below:
> > > <?xml-stylesheet type="text/xsl"
> > > href="transform.xsl"?>
> > >
> > > I don't use XmlCursor which has an api
> > > insertProcInst() to do this.
> > >
> > > -D
>
>
>
>       
> ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
> ---------------------------------------------------------------------
> 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