SAX: Simple API for XML Activity
Brought to you by:
dmegginson
Prolog: [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [27] Misc ::= Comment | PI | S What type of content, and where more specifically you expect it to be allowed? In any case, SAX is just an API specification. The actual behavior is governed by: The XML specification; and The parser/processor implementation in use.
SAX is just an API specification. The exact message is emitted by the parser implementation in use: at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) You should bring this up with the Xerces project.
Error message Element ... cannot have character [children], because the type's content type is element-only.
Add ability to have content in the prolog