Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Incorrect specification of opening and closing brackets( ) within WebXmlParseNodeAttribute function when parsing from TrueLog Explorer leading to a compile error

Incorrect specification of opening and closing brackets( ) within WebXmlParseNodeAttribute function when parsing from TrueLog Explorer leading to a compile error

There is a known issue within Silk Performer 15.0 and earlier versions when parsing XML data from a TrueLog file, if the ToEncoding() function is used within the scripted WebXmlParseNodeAttribute function. For example, within Silk Performer 15.0, the following web function 

WebXmlParseNodeAttribute(sXmlParseResult2, STRING_COMPLETE, ToEncoding("/form[1]/input[1]"), ToEncoding("value"), 0, NULL, 1, ToEncoding"text/xml"());

is scripted when parsing the 'TheTest' attribute value, like so:

Note the notation of the 'ToEncoding"text/xml"()'. With this notation, a 'SEM 15: variable, random variable or parameter not declared: ToEncoding' is returned during compile.

Essentially, the WebXmlParseNodeAttribute() should be similar to the following:

WebXmlParseNodeAttribute(sXmlParseResult2, STRING_COMPLETE, ToEncoding("/form[1]/input[1]"), ToEncoding("value"), 0, NULL, 1, ToEncoding("text/xml"));

Investigations are underway to address this issue within Silk Performer 15.0.

Workarounds to the issue are:

1) Manually change the opening and closing brackets within the WebXmlParseNodeAttribute() function

2) Upgrade to Silk Performer 15.5, the issue does not occur within this release.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2014-06-24 11:54
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.