Re: How can I replace <xml-fragment> to my own value like <Return>
Cezar Andrei <[email protected]> Fri, 11 Mar 2011 16:28:11 -0600
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <[email protected]> |
Shadab, You are using an instance of an xmlschema type to serialize your data. You can try serializing an instace of a global schema element, i.e. a *Document class. Or you can use the setSaveSyntheticDocumentElement() http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveSyntheticDocumentElement(javax.xml.namespace.QName) option. Cezar On Mar 10, 2011, at 5:49 AM, [email protected] wrote: > Hello All, > > Please help me out on my problem. > > I am new on xmlbeans. when I get Xml using xmlBeans, I get xml like below- > > <xml-fragment xmlns: ***** name space *** > > <other tag/> > <other tag/> > <other tag/> > > </xml-fragment> > > while, I want output like this- > > <Return xmlns: ***** name space *** > > <other tag/> > <other tag/> > <other tag/> > </Return> > > How can i do that. Please reply back to me. > Many Thanks, > Shadab > ********************************************************************************************************************** > CONFIDENTIALITY. This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of JK Technosoft Ltd. If you have received this e-mail in error please immediately notify us at [email protected] > > **********************************************************************************************************************