Solution Below given a sample XML body From this, we can extract data using the below sample code var fileContent = fileObj.getContents(); //if xml data is in file //Parse XML to a variable var xmlObj = xmlMod.Parser.fromString({ text: fileContent }); //Getting values from 945 XML file //Traverse to each node var orderheader = xmlMod.XPath.select ({… Continue reading Extract data from XML body
Tag: xml
Convert XML to JSON in Netsuite
This code will help us to convert XML files to JSON. Using this script snippet You can easily convert XML data to JSON format. This will apply in SOAP-based integration(XML based response converting to JSON)