← Prev in month ← Prev in thread

parsing of xml string

From
Rasmussen, John <>
To
Date
2002-07-26T19:12:14Z
ID
<>
Thread
parsing of xml string
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);

I assume I have to setSystemID, but can't seem to get it right ...

anyone know ?

john
← Prev in month ← Prev in thread