Next in thread → Next in month →

Re: [xml-dev] parsing of xml string

From
John Cowan <>
To
Date
2002-07-28T01:05:45Z
ID
<>
Thread
Re: [xml-dev] parsing of xml string
Jeff Rafter scripsit:

> To parse an XML file from String, you wll need to wrap the string in an
> InputStream and then send the stream to the InputSource constructor. You can
> still set the system and public ids but it is not necessary-- the SAX parser
> should use the stream.

Better to use a Reader rather than an InputStream, since a String is
inherently character-oriented, not byte-oriented.

-- 
Schlingt dreifach einen Kreis vom dies! || John Cowan <>
Schliesst euer Aug vor heiliger Schau,  || http://www.reutershealth.com
Denn er genoss vom Honig-Tau,           || http://www.ccil.org/~cowan
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)
Next in thread → Next in month →