- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2014 08:56 AM
Hi All,
I have populated wizard varaible (multiline field) with XML string.
On the onLoad client script, I need to use the XML string populated in the wizard varaibel to get element values.
Not sure if any OOB functions for parsing XML string on the client side? if not what are the options?
Appericaite your help on this!
Thanks
Sats
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 09:14 AM
Hi Marcelo,
Above link has solved the problem of converting the given string to XML object to access and modify XML element values. Now I need to convert the modifiedXML object to string, so I can write modified value on a SNC variable. Can't see a function to do this? Any help?
Thanks again!
Regards,
Sats
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 09:31 AM
Finally got the answer, with help Marcelo
var xmlString = "<?xml version='1.0' ?>\
<root>\
<level1>\
<option>Option1</option>\
<option>Option2</option>\
<option>Option3</option>\
</level1>\
</root>";
var parser = new DOMParser();
var xmlDocument = parser.parseFromString( xmlString, "text/xml" );
var serializer = new XMLSerializer();
var string = serializer.serializeToString( xmlDocument );
alert( string )
for IE
return xmlDocument.xml;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 09:52 AM
Glad to hear
