cancel
Showing results for 
Search instead for 
Did you mean: 

vc <> webdynpro DOM parsing

Former Member
0 Kudos

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);

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

thanx but i fixed the problem my self the problem was in visual composer out put xml its sent a '/' insted of '\' in the xml syntax