Community

Code Snippet: Getting SAX InputSource from a DOM Document

Sometimes you need a SAX InputSource from a DOM Document object. For example, if you are using SAX parser to map XML to Java objects, but your source is a DOM Document object. Here is a solution found by software engineer Albert Yu, in which the only problem is that it throws a RuntimeException

Read More - Register for Free Membership