Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Version 2 Beta 1
-
None
-
Windows
Description
This is happening on a build from 10/12. Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.
I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):
java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro
Under v1.0.3 I get the following in output.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config/>
On the 10/12 build I get this:
<?xml version="1.0" encoding="UTF-8"?>
<struts-config/>