dubinsky opened a new pull request, #83: URL: https://github.com/apache/xalan-java/pull/83
For DOM that is not a `Document`, `DOM2SAX.parse()`, in addition to calling `parse(Node)`, calls the `ContentHandler`'s `startDocument` and `endDocument`, since `parse()` won't call them in this case; `parse(InputSource unused)` just calls `parse(Node)`, so the `ContentHandler` does not gereceive the `startDocument` and `endDocument` events, which are mandated by the SAX specification. This can cause problems; see, for example, https://github.com/scala/scala-xml/discussions/694 The simplest way to fix this is to change `parse(InputSource unused)` to call `parse()` instead of `parse(Node)` - and this is what this pull request does. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org