From: Andy C. <an...@cy...> - 2008-01-22 00:27:56
|
sie...@he... wrote: > Can someone give me an example of parsing the contents of a string > instead of reading from a file? You need to wrap the string in a java.io.StringReader and then pass that into the XMLInputStream's constructor. This is the same as if you were parsing XML documents with Xerces. The publicId and systemId are only important for XML parsing when the parser needs to load an external entity. -AndyC |