Skip to Content
avatar image
Former Member

vc <> webdynpro DOM parsing

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 07, 2006 at 02:42 PM

    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

    Add comment
    10|10000 characters needed characters exceeded