Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-72

Document properties are lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 2 Beta 1
    • Version 2 Beta 1
    • XmlObject
    • 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/>

      Attachments

        1. struts-config_1_1.xsd
          12 kB
          Richard Feit
        2. repro.java
          0.7 kB
          Richard Feit

        Activity

          People

            Unassigned Unassigned
            rich Richard Feit
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: