xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelly Campbell <c...@channelpoint.com>
Subject RE: Is it possible ro parse a string instead of parsing a file or steam in Java?
Date Tue, 06 Mar 2001 21:47:08 GMT
take a look at java.io.StringReader and/or java.io.StringBufferInputStream.
Pass one of these to InputSource


> -----Original Message-----
> From: Christian Muth [mailto:christian.muth@base-system.com]

> I wonder, if it is not possible to parse an ordinary java.lang.String
> containing the xml document, e.g.:
> ( "<user><firstname>John</firstname><lastname>Doe</lastname></user>"
> I use the sax2 api and xerces for java, but I can only parse regular
> files. I haven't found a possibility to take a normal string
> as the input source.
> Can one help me?

View raw message