A combination of comments, whitespaces and processing instructions are valid as the Misc part of the prolog.
<?xml version="1.0"?><?pi?> <!--comment--> <?pi?> <!--comment--> <?pi?><doc/>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |