irurzo
06/08/2020, 10:20 AMJSON.stringify
but didn’t work, any idea, what I want to do is get some values from that xml so I though about using nlapiStringToXML
but I got an error saying
Content is not allowed in prolog
This is what I tried : nlapiStringToXML(JSON.stringify(xmlLookup.custrecord_bit_file_content))
battk
06/08/2020, 10:23 AMContent is not allowed in prolog
your error suggests that you aren't passing xml to be parsedbattk
06/08/2020, 10:24 AMxmlLookup.custrecord_bit_file_content
is a javascript string, so when you stringify it, your code stringifies a stringbattk
06/08/2020, 10:25 AM\"<?xml version=\\\"1.0\\\"?>\\n<CTPcanonicalInvoicev001>\\n <Coverpage>\\n <Uuid>20191203110619388</Uuid>\\n....\"
irurzo
06/08/2020, 10:47 AM