Skip to Content
0
Former Member
Dec 05, 2006 at 12:14 PM

vc <> webdynpro DOM parsing

42 Views

hello there

i tryed the DOM parsing on the returned paramter from the <u>portal eventing</u>

between<u> visual composer and webdynpro</u> and i get this error :

<b>com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here:

(hex) 25, 33, 43(:main:,row:1,col:3</b>

the ascii code from the visual composer in dataObject is:

%3CParamas%20version%3D%222%22%20%3E%3CRow%20STR1%3D%22test1%22%20/%3E%3C/Params%3E

the xml code of dataObject string is:

<b><Params version="2"><Row STR1="test1"\><\Params></b>

the java code is:

// Create a Dom parser

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

factory.setValidating(true);

DocumentBuilder docBuilder = factory.newDocumentBuilder();

// Parse input to create document tree

StringReader s = new StringReader(dataObject);

InputSource is = new InputSource(s);

Document doc = docBuilder.parse(is);