Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xmlparsing]

The tag has no usage guidance.

2
votes
2answers
34 views

Salesforce: Issues in removing the entire child node in an xml

I have an xml , and I tried to remove an entire child nodes using the xml DOM process. Even i use the remove child method , the result says true but if i print the dom it still holds that child ...
0
votes
1answer
31 views

System.NullPointerException: Attempt to de-reference a null object Error while parsing XML response

I am trying to parse the XML response and want to create the records only when url is present but when i am trying to create the record then i am getting the below error "Line: 83, Column: 1 System....
0
votes
1answer
139 views

Parsing XML Response body in Apex

I want to parse the XML body and want to capture the url from the xml body in the list of string which i have created but i am getting Null values in the list Respnse body:- <retours> <...
0
votes
1answer
132 views

Apex multi level apex parsing

Below is the XML format needs to be parsed with apex: <?xml version="1.0" encoding="UTF-8"?> <Parents> <SubParent> <SuperParent> <Child> ...
-1
votes
1answer
109 views

Parse XML values from a column in the DE?

I'm new with XML in SFMC, and I'm not sure if someone tried to execute the type of scenario, but I'm stuck with understanding the process of parse an XML payload form inside the SMFC. Is it even ...
0
votes
1answer
183 views

jQuery parseXML() no longer works since Summer '18

Since the Summer '18 patch the jQuery parseXML() is now throwing a "Invalid XML: .." error message. Sample code: try{ var xml = "<node>test</node>"; var xmlDoc = $.parseXML(xml); ...
3
votes
0answers
66 views

How to populate XML

I saved an XML template file like the below in a library. Please note the text ApplicationTypeHolder and SubmissionTypeHolder in the file. I modified the original XML file and added those texts there. ...
-1
votes
1answer
185 views

How to Read values from XML response?

I'm doing the adobe connect integration with salesforce.Here for getting the events list i wrote the REST API from that i'm getting the all events but for everytime it inserts the all events and ...
2
votes
1answer
45 views

How to parse the XML Data?

<event sco-id="1302640315" type="event" icon="event" permission-id="view"> <name>Salesforce Integration with External Systems</name> <domain-name>meet95927113....
1
vote
1answer
54 views

Inserting a record after reading XML sent by external app

External app will send XML in their request to salesforce webservice class and webservice class will have to insert a object record.I have written a webservice and it is able to get the xml in string ...
0
votes
0answers
106 views

Hitting Apex Heap Size limit

I'm trying to parse an XML response from a web service. The XML contains the information of the line items added to a quote as well as document data with the description of all line items. This ...
0
votes
1answer
1k views

Convert Apex XML response into JSON Format?

This is my result in xml format how can i convert this into JSON format in salesforce . (or) is there any other way directly deserialize the XML response. MyResult == : <?xml version="1.0" ...
1
vote
1answer
502 views

Comparison operator '<' & '>' AMPscript error in XSLT

Basically the email uses XSLT AMPScript to parse XML into the email. Part of the requirement is to count the items in the XML data and perform certain logics based on the item count. Since XSL uses ...
0
votes
0answers
57 views

How to merge xml in an existing excel as sheet2 using Apex

I have an excel which is unzipped and stored in Salesforce using the method described in blog (https://andyinthecloud.com/2012/12/09/handling-office-files-and-zip-files-in-apex-part-2/) I have some ...
0
votes
1answer
169 views

Consuming xml flat files in Salesforce [closed]

I have a business requirement, which says that xml files (with table and row like elements) are attached (uploaded) to a custom object, which will be done through the REST API. That's done. Now I ...
0
votes
2answers
2k views

XML parsing in Apex

I want to get the task Id from the below response. <?xml version="1.0" encoding="utf-8"?> <response> <task id="56639c84-7f73-4ace-b7ab-a46683ff0e25" registrationTime="2017-06-07T13:...
1
vote
1answer
310 views

Ampscript and SSJS SOAP Call and read XML

I'm trying to make a soap post and get a rowset but I think that my xpath is bad-constructed. %%[ VAR @xml ]%% <script runat="server"> Platform.Load("core","1.1.1"); var url = 'http://...
5
votes
1answer
370 views

Why is Xpath returning null for Salesforce SOAP query response?

I am using Xpath to attempt to parse and get data back from a SOAP Salesforce query response, I found the sample API request and response WSDL from this Salesforce Documentation. My SOAP Salesforce ...
0
votes
0answers
56 views

How to replace £ in XML

When I pass a String to XML I have £ Symbol.Suppose if the string is 'test£' then it gives the exception as invalid String as we have £ in String. Is that possible to replace this £ symbol. I tried &...
0
votes
2answers
951 views

Parsing XML response, Values preceded by delimited null in Debug, Returns Null variable assignment

I have an external system I am making a SOAP HTTP POST request to that has a simple response. I need to store both returned values as string variables for further processing. Here is the response from ...
0
votes
1answer
201 views

How to sort line items by OrderLineStatus in XML when AMPScript is looping?

How do I show only items with OrderLineStatus as Shipped and @Published as false? Right now no items are being populated. Here is my xml based AMPScript: %%[ IF IndexOf(@xml,"<Published>") &...
0
votes
3answers
266 views

How to Reorder XML tags

In the below code --> mapcolRows.put(subchildelement.getName(),subchildelement.getText()); subchildelement.getName() gets 'Enabled' and 'Name' tags in XML as shown below <Profile xmlns="http://...
0
votes
1answer
1k views

XML Parsing of Package xml to Json string

I am trying to parse a package xml and make it as json string using DOM Parser in salesforce.But I am not getting result of JSON string.Below is my code: VF Page: <apex:page applyHtmlTag="true" ...
0
votes
1answer
567 views

How to read XML data in salesforce?

I get data in XML from a web service from a connector URL, the xml contains data about people, now I have to read the names, emailids from that xml and compare with my org's contacts and so some ...
-5
votes
1answer
625 views

How to insert xml response in salesforce object [closed]

I want to insert XML Response (Quantity,InStock) into salesforce Custom object(Test__c) in custom fields (Quantity__c and Instock__c) based on SellerSKU.see below XML Response. Please Help me how to ...
0
votes
1answer
159 views

Issue with XmlStreamReader not getting the last xml element content

I have the following code to parse an xml script below class Cell { string data; } Integer rowCounter = 0; List<Cell> cells = new List<Cell>(); Map<Integer, List<Cell>> ...
1
vote
1answer
237 views

getChildElement element failing null pointer exception

I have the below XML response which I am trying to parse through XML parser. But I am facing error i.e null pointer exception in debug log for the line: if(objXMLNode.getChildElement('...
1
vote
1answer
769 views

Apex: How to get all child element of an xml? - Parsing xml via XmlStreamReader

I am trying to parse an MSXML which is a response from a web services via XmlStreamReader. The below code is the response from the web service: <?xml version="1.0"?> <?mso-application ...
2
votes
1answer
600 views

How to Create Records from XML Data?

This is the webservice response I am Getting in XML Format. <?xml version="1.0"?> <ListOrdersResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01"> <ListOrdersResult> ...