Questions tagged [xml]

Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.

Filter by
Sorted by
Tagged with
2 votes
1 answer
4k views

Verify getChildElement() is not null

As a follow up to my previous post: REST API calls to 3rd Party (Pardot), multiple @future callouts There are two responses I expect back when I attempt this Web Service callout to Pardot: 1) ...
user avatar
  • 4,368
1 vote
1 answer
2k views

XML and AMPscript -- how do I "BuildRowSetFromString" using data from my API post?

I'm trying to build a confirmation email whereupon we create a rowset from a string within the API post. We currently do this without issue when evaluating data from a Data Extension, but I can't ...
user avatar
0 votes
3 answers
1k 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://...
user avatar
  • 122
0 votes
2 answers
149 views

Discover Schema of Source + Metadata XML formats

The Open Source Static Analyser PMD is now supporting not only Apex but also rules on arbitrary XML metadata. Using flexible XPath expressions that verify the structure and attributes of XML. I am ...
user avatar
0 votes
1 answer
216 views

AMPscript Error with XML

I have a Partner sending some data to a Triggered Email/Data Extension which includes a column for XML data. The trigger is erroring and not allowing the data to get to the Data Extension. Below ...
user avatar
3 votes
1 answer
2k views

Unexpected Error while trying to perform simple Upsert

When sending the following XML and CSV, I get this error on the Bulk Data Load Job Detail screen: Got an unexpected error while processing BULK-API. Contact support with error ID: 1070223644-7484 ...
user avatar
3 votes
1 answer
18k views

Calling an external REST service in apex

I need to make a call to an external xml-rpc service in apex. I have written this little apex code: public static void callPBA() { HttpRequest req = new HttpRequest(); HttpResponse res = new ...
user avatar
9 votes
1 answer
1k views

Any way to validate XML against XSD file in Apex?

Im currently using an apex class with Dom.Document to generate an XML file which then gets sent off to an external endpoint. I would like to be able to validate the XML file against an existing XSD ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 125
7 votes
2 answers
7k views

Difficulty Parsing XML

I am having difficulty parsing the XML returned from a webservice callout. In the past, I've always been able to use XMLstreamreader, but it does not seem to work with formatting of the XML from this ...
user avatar
  • 127
2 votes
1 answer
967 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 ...
user avatar
1 vote
1 answer
371 views

failed to parse the XML file in apex- gives null pointer exception error

I'm trying to parse the below XML file: <articles> <article> <source>EN-US</source> <target>SL</target> <id>ka1800000000eCYAAY<...
user avatar
  • 11
7 votes
2 answers
12k views

Deploying Business processes with ANT

I have tried to deploy business processes with ant. I seem to have the syntax wrong. I am seeing Entity type: 'businessProcesses' is unknown <?xml version="1.0" encoding="UTF-8"?> <Package ...
user avatar
4 votes
1 answer
513 views

Error: XML Tree depth greater than 50

A customer of ours is using the Salesforce XML Parser to parse a deeply nested XML file. They are seeing the following error message: I was able to reduce the "nested-ness" of the XML file for them (...
user avatar
  • 588
4 votes
2 answers
741 views

Using AMPScript to pull in RSS feed content in SFMC

I am attempting to pull in content from a blog feed using AMPscript but am experiencing some issues in attempt to do so. It is probably worth noting that all I need to pull in is the title, ...
user avatar
4 votes
1 answer
1k 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> <...
user avatar
3 votes
1 answer
331 views

Metadata Equivalent of the System Permission "Connect Org to Customer 360 Data Manager"

I'm currently experiencing the error: "You may not modify the permission Connect Org to Customer 360 Data Manager while editing a Standard Profile". I've checked in the destination org ...
user avatar
  • 720
2 votes
2 answers
2k views

Issues using XmlStreamReader

I have an XML response, using XmlStreamReader I am getting data. The data is encapsulated between <Requisition> </Requisition>. The response XML contains multiple 'Requisition' tag set. ...
user avatar
  • 1,515
2 votes
1 answer
3k views

Best Practices for generating large XML files

I currently have some requirements for an integration that I am doing and was curious if anyone had some feedback on the best initial approach. I am currently working on building out the structure ...
user avatar
  • 1,665
2 votes
1 answer
1k 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> ...
user avatar
  • 948
0 votes
1 answer
388 views

Error using inline dataloader: WARNING: sun.reflect.Reflection.getCallerClass is not supported

I'm trying to use the line loader and I'm getting this error data: I really have no idea why I'm getting this, I'll be adding my mapping: I will also leave the csv for the upsert: And the process-...
user avatar
  • 255
0 votes
1 answer
90 views

How to build large single XML Document over multiple batches

I would like to understand if it's possible to generate large XML files using XmlNode and Document classes in Batch apex? Ideally, I would like the Dom.Document class variable to be stateful. However, ...
user avatar
  • 616
0 votes
1 answer
45 views

RSS feed via Ampscript (with earlier sample code failing)

I am trying to create a content block in email-studio, using xml/rss feed to import content for display. I've used both (1) creating a standalone content block, and (2) inserting a code snippet ...
user avatar
  • 113
0 votes
1 answer
10k views

XML Parsing using apex in salesforce

I want to do XML Parsing into apex. Please help me to do parsing in apex. see below XML Data. Please explain me how to do xml parsing into apex to show this XML data into visualforce page and also ...
user avatar
0 votes
1 answer
46 views

Why does my AMPscript only loop once?

I am trying to display multiple results using this loop. However, it will only loop through the first set of results from the XML. AMPscript: %%[ VAR @ShipmentsReleasedRows SET @ShipmentsReleasedRows ...
user avatar
0 votes
2 answers
280 views

Not getting stored multiple results using xml file

I have following xml and i am going to insert in one custom object's custom field called Formatted_address__c. Now, Problem is all Formatted address not inserting, it just taking the first address> ...
user avatar
0 votes
1 answer
244 views

Attempt to dereference null object error callout in salesforce [duplicate]

I am getting attempt to de-reference null object error the below callouts. class1: public class ProcessImgCallout { @future (callout=true) public static void SendImage(ID id) { ...
user avatar
  • 43
0 votes
1 answer
269 views

NullPointerException while parsing XML callout response

I am getting attempt to de-reference null object error the below callouts. Class 1: public class ProcessImgCallout { @future (callout=true) public static void SendImage(ID id) { ...
user avatar
  • 43
-3 votes
1 answer
3k views

How do I read the following XML in Apex? [closed]

What class or function could I use to parse this data? <CONTACT> <SDICTIONARY> <CONTACTNAME>ABC</CONTACTNAME> <SYNONYMNAME>ABC1</SYNONYMNAME> ...
user avatar
  • 706