JDK-7165778 : XML standalone element is lost during transformation
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.parsers
  • Affected Version: 5.0u35
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2012-05-02
  • Updated: 2012-05-10
  • Resolved: 2012-05-10
Related Reports
Relates :  
Description
The XML test case

Transform_Tests/DoctypeTest

failed during jdk 1.5.0 u36 testing with the message:

FAIL: Test Result String `<?xml version="1.0" encoding="UTF-8"?>`does not match Gold File String = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>`

Indeed, the standalone element is lost during the transformation. It exists in the original xml file, but absent in the output. See a test case with golden (doctypeGF.out) and output (doctype.out) files in the attachment. 

This is not a regression. This is not reproducible with JDK 6/7.