OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] parsing of xml string

[ 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)




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS