[ https://issues.apache.org/jira/browse/XMLBEANS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16970773#comment-16970773 ]
PJ Fanning commented on XMLBEANS-548: ------------------------------------- I didn't want to change any APIs - so I left XmlDocumentProperties as setStandalone(boolean). setStandalone(false) clears the flag - so you can only get `standalone="yes"` in the XML or omit the attribute. A jar with the change can be downloaded from [https://builds.apache.org/view/P/view/POI/job/POI-XMLBeans-DSL-1.8/28/] > XmlDocumentProperties.setStandalone is ignored when saving > ---------------------------------------------------------- > > Key: XMLBEANS-548 > URL: https://issues.apache.org/jira/browse/XMLBEANS-548 > Project: XMLBeans > Issue Type: Bug > Components: XmlObject > Affects Versions: Version 3.1.0 > Reporter: Manfred Schenk > Priority: Major > Time Spent: 20m > Remaining Estimate: 0h > > If you set standalone = true on the documentProperties this flag is ignored > when saving the document to an xml file. > This has already been mentioned on the mailing list some years ago, there was > even a patch in the following mail > ([http://xmlbeans.996285.n3.nabble.com/How-to-add-standalone-attribute-tp657p660.html)] > that didn't make it into the official sources. > > Due to this error it is not possible to generate xml-files with xmlbeans > where standalone is set to "yes" in the first line of the file. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org