xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit" <ank...@ltp.soft.net>
Subject Re: Is it possible ro parse a string instead of parsing a file or steam in Java?
Date Wed, 07 Mar 2001 04:28:04 GMT
try antlr
----- Original Message -----
From: "Christian Muth" <christian.muth@base-system.com>
To: "x g" <general@xml.apache.org>
Sent: Tuesday, March 06, 2001 2:30 PM
Subject: Is it possible ro parse a string instead of parsing a file or steam
in Java?


> Hello List,
>
> 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?
>
> TIA,
>
> Christian Muth
> --------------------------------------
> Web Application & System Developer
> Phone:  +49 6721 9174-84
> Web:    www.base-system.com
> E-Mail: christian.muth@base-system.com
> --------------------------------------
>
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
>


Mime
View raw message