How to add standalone attribute
Roman Kashitsyn <[email protected]> Tue, 10 May 2011 08:46:56 -0700 (PDT)
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <[email protected]> |
How can I add standalone="yes" attribute to "xml" processing instruction when saving xmlbean? Suppose I had an xmlbean and I want to save it in the following way: XmlOptions xmlOptions = new XmlOptions(); xmlOptions.setSaveOuter(); xmlOptions.setSaveSyntheticDocumentElement(new QName(NAMESPACE_URI, TAG_NAME, PREFIX)); /* some magic happens here */ bean.save(anOutputStream, xmlOptions) Now I get the following result: <?xml version="1.0" encoding="utf-8"?> <!-- perfectly well xml file --> How can I get the following result: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <!-- perfectly well xml file --> ??? -- View this message in context: http://old.nabble.com/How-to-add-standalone-attribute-tp31586761p31586761.html Sent from the Xml Beans - User mailing list archive at Nabble.com.