parsing a XML document
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 11:10 AM
can you please guide me on this.
1) I created a Soap OutBound Message.
2) recieved a long response(xml) for a given request.
3) i want to put this in a scheduled job.
4) I want to extract the a single node data from that and push it into cutom table.
5) I copied the preview script and pasted in scheduled script.
5) I want to parse the xml data and extrat the contents of the perticular node.
Please guide me on extracting the node data.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 12:01 PM
Hi Naresh,
Try this:
response is xml string.
var xmldoc = new XMLDocument(response);
var result = xmldoc.getNodeText('//GetPorfoliosResponse/PortfolioDescriptor/PortfolioName');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 12:07 PM
Can we use.....xmldocument2
On Dec 15, 2017 1:31 AM, "gowrisankar" <community-no-reply@servicenow.com>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 12:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 12:17 PM
More over there are 20 data fields in the complete XML, I need to capture
all
On Dec 15, 2017 1:44 AM, "gowrisankar" <community-no-reply@servicenow.com>