[
Lists Home |
Date Index |
Thread Index
]
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 <jcowan@reutershealth.com>
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)
|