|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: parsing of xml string
7/26/02 2:12:14 PM, "Rasmussen, John" <John.Rasmussen@F...> wrote:
>I can parse a file, but when I try to parse an xml string, I get a "NO
>PROTOCOL" exception.
>
>String testErrorDoc = "<?xml version='1.0'
^^^^^^^^^^^^
>encoding='UTF-8'?><root><ErrorMessage><ErrorCode>2</ErrorCode><ErrorString>'
>XXX'</ErrorString></ErrorMessage></root>";
>
>InputSource inPS = new InputSource(xmlDoc);
^^^^^^
>saxParser.parse(inPS, handler);
Might help if you were trying to parse the actual string...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








