Hi Mikael Absolutely. Have a look at the API XmlCursor.insertProcInst().You can get a cursor from an XmlObject via the newCursor() method.
Note that you need the cursor to be in the right place in the document before calling insertProcInst(). If you're new to XmlCursor have a look at the article http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors. html first. Cheers, Lawrence > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 05, 2006 5:29 AM > To: [email protected] > Subject: Add custom <? ?> tag. > > Hi, > > I've created a XmlObject and generate an xml with > obj.save( new File( "myxml.xml" ) ); > > This results in an xml-file with: > <?xml version="1.0" encoding="UTF-8"?> > <xml-tag> > ... > </xml-tag> > > I'd like to add a custom <? ?> to it so the result looks like: > > <?xml version="1.0" encoding="UTF-8"?> > <?my-custom-tag attribute="stuff"?> > <xml-tag> > ... > </xml-tag> > > Is that possible to do with XmlBeans? > > Thanks for any input. > > /Mikael > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

