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 ]

7/26/02 2:12:14 PM, "Rasmussen, John" <John.Rasmussen@FMR.COM> 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...







 

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

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