Skip to Content
0
Former Member
Sep 12, 2006 at 09:51 AM

Error: com.sap.engine.lib.xml.parser.NestedSAXParserException

24 Views

Hello guys,

I want to parser the following XML data:

<pcdRequest>

<ROOTFOLDER type="FOLDER" name="RootFolder">

<ROLE1 type="ROLE" name="role1">

<VIEW1 type="IVIEW" name="iview1"/>

<FOLDER1 type="FOLDER" name="folder1"/>

<PAGE1 type="PAGE" name="page1">

<VIEW2 type="IVIEW" name="iview2"/>

</PAGE1>

</ROLE1>

</ROOTFOLDER>

</pcdRequest>

I used

javax.xml.parsers.DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();

Document xml = builder.parse(request.getRequestInputStream());

when the code "Document xml = builder.parse(request.getRequestInputStream());"

is executed, I got the error like this:

com.sap.engine.lib.xml.parser.NestedSAXParserException: com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x0(:main:, row:1, col:132)(:main:, row=1, col=132) -> com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x0(:main:, row:1, col:132)

What does this message mean?

Regards,

Liying