Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: Parsing XML attribute values within TrueLog Explorer is unsuccessful.

$
0
0
The response document has to be a valid XML document for the WebXMLParseNodeAttribute() function to work properly. This means, should the attribute value be part of an XML node which does not contain an end tag, i.e. /form or form.... / , then the parse will be unsuccessful. The image below details how to actually parse from the TrueLog: This will result in a WebXmlParseNodeAttribute() function being scripted within the .bdf file, e.g: WebXmlParseNodeAttribute(sXmlParseResult1, STRING_COMPLETE, ToEncoding("/form[1]"), ToEncoding("id"), 0, NULL, 1, ToEncoding("text/xml")); WebPageUrl("http://localhost/testXML.xml"); Print("sXmlParseResult1:" + sXmlResult1); Should the parsing be unsuccessful and return a NULL value, apply one of the following options  to workaround the issue: a) Edit the XML structure within the application source code to include an end tag b) Parse the value directly from the application source - 'source tab', which will result in a WebParseDataBoundEx() being scripted as opposed to a WebXmlParseNodeAttribute()

Viewing all articles
Browse latest Browse all 4084

Trending Articles