Questions tagged [xmlparsing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

BuildRowsetFromXml is returning empty nodes

I am trying to get the first name from the order confirmation but the field AMPscript returns is empty. This is my code: %%[ var @firstName var @lastName var @email var @products var @subscriberKey ...
0
votes
0answers
30 views

Populate XML with XSD Schema

I was provided an XML schema that (I think) I should be able to utilize to build out the XML string that I need to send to a web service. The two documented items in the Apex Developer Guide talk ...
0
votes
3answers
718 views

How to send Post request to Rest API with XML data

I have created a rest API(apex class) in Salesforce. I have multiple nested tags in xml that comes via API request. I am wondering how do I define my post method in apex that could handle the request. ...
2
votes
1answer
125 views

System.XmlException: start tag unexpected character =

This is the full error: System.XmlException: start tag unexpected character = (position: END_TAG seen ...<source> Bicycling</source><media:contenturl=... @1:688) So from my ...
0
votes
1answer
27 views

Parse responsexml in salesforce

I am integrating salesforce with an external SAP Application and I am getting the following response XML <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:...
3
votes
1answer
160 views

How to use BuildRowSetFromXML with an “attribute-id” in SFMC?

I'm having trouble referencing a specific item in our order XML feed. I want to reference a specific "attribute-id", not the entire rowset. XML reference: <custom-attributes> <...
2
votes
2answers
57 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
51 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
668 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
423 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
184 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
203 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
121 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
343 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
51 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
62 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
126 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
2k 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
644 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
1answer
199 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 ...
1
vote
2answers
3k 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
379 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
408 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
67 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
1k 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
238 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
380 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
2k 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
627 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 ...
-4
votes
1answer
791 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
184 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
301 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
944 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
699 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> ...