Convert string into XML
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 08:28 AM
How can I convert a string character into an XML one?
Any help will be appreciated. Thanks in advance.
Labels:
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 08:30 AM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 10:07 AM
Hi Kunal,
Here are some APIs you should look at:
- XMLDocument2 - this gives you a parseXML(xmlString) method that lets you take your string and turn it into an XMLDocument2 object.
- gs.xmlToJSON(xmlString) - this allows you to convert an XML string into a JavaScript object. It's often easier to work with a JS object representation of the data.