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 [xml]

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

1
vote
1answer
24 views

How can we convert XML to Native Objects when the XML includes “Date” and “Time” as elements?

I'm currently trying to determine whether we can replace our company's convoluted XML processing solution (based on XPath) with one based on @SfdcFox's XmlToJson solution. Unfortunately, the XML we ...
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
0answers
11 views

Using Crypto.signXml() to assign Digital Signature to Header Block

I have been trying to Cypto.signXml() to sign by XML document. I want to get the Digest and Signature of the Body element but have it inserted into a Security element within the soap Header. The XML ...
0
votes
1answer
7 views

Visualforce Page Permission for all Profiles

I want to provide Visualforce Page permission to all profiles (Custom and Standard) in one single shot. I have 20 Profiles in the list and it will be tough to do it manually.
4
votes
1answer
42 views

How to assign a right curly bracket } as attribute value inside the markup of a lightning component?

In the markup of a lightning component I want to set this string a the value for a label-attribute: "label {1}" Let's take a lightning button as an example. But my question is unspecific and ...
0
votes
1answer
42 views

“&” Character in XML Displaying in AMPscript/Triggered Send

I have a Triggered Send erroring because of the & character being used in values. I have an XML column in one of my Data Extensions. I have some values that contain the & character. For ...
0
votes
1answer
50 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 ...
0
votes
1answer
31 views

XML-RPC support in Apex

We have an existing external system whose API documentation mention that the client system should support XML-RPC specification. To consume the services on this external system, can we directly do a ...
1
vote
0answers
59 views

Error when trying to deploy Lightning Page: “Error: You can't change a Lightning Page's associated template”

Relatively new to the SFDC world and I've come across this issue when trying to deploy Lightning pages to a new sandbox. When deploying my lightning page via workbench I get the following error: ...
1
vote
1answer
33 views

Return null value, if node not present in RSS-feed (ampscript)

I am trying to populate an e-mail with 5 images and text using ampscript and a RSS-feed. The RSS looks like this: <title>title</title> <link>foo.com</link> <enclosure ...
5
votes
1answer
32 views

Where can I find a mapping between a profile setting label and the underlying XML tag for a profile?

I am trying to audit a profile. I have a sheet with the labels in the profile, and I have the profile XML. But there is no simple concordance between something like this: <userPermissions> &...
1
vote
1answer
67 views

Apex Generation Failed - WSDL problem - SOAP

I'm trying to solve this problem with Salesforce. I'm trying to generate apex classes from WSDL (converted from WADL) Parsing works correcly without any errors and warning. But I can't generate the ...
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> ...
0
votes
1answer
27 views

Get Decimal value from XML response

I know that we can get a string from XMLNode using a string and using String invoiceNumber = root.getChildElement('invoiceNumber', null).getText(); . But I need a decimal number from same XML. can ...
2
votes
1answer
29 views

Why am I not able to parse valid XML straight from the Salesforce Documentation, but JSON works fine?

On this particular page: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_methods.htm About halfway down, you'll see a method which I have included in my class @...
1
vote
0answers
43 views

Response as HTML instead of XML [closed]

How to get response as XML for below URL URL
2
votes
2answers
89 views

How to control the property name of a serialised object using Apex

BACKGROUND I need to generate the below JSON data: JSON { "Type": "ACCPAYCREDIT", "Status": "AUTHORISED", "Contact": { "ContactID": "eaa28f49-6028-4b6e-bb12-d8f6278073fc" }, "Date": ...
-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
0answers
18 views

Tried to read XML stored into DE as text and print but it output is null

Code: %%[ var @xml,@email set @email=email set @xml=xml ]%% Emial:%%=v(@email)=%% XML=%%=v(@xml)=%% DE: email | xml ssingh297@sapient.com | <from&...
1
vote
2answers
340 views

Pulling *full* Profile XML without hitting metadata limit?

Need: I have a profile configured for the 'Salesforce Platform' license type, and need a version of it that works for the 'Salesforce' license (you can't clone a profile across license types using the ...
0
votes
1answer
946 views

Method does not exist or incorrect signature: void format(String) from the type Date

The below code is throwing error Line 2931: Xmlstreamwriter.writeCharacters((Account.Date_From__c==null)?'':Account.Date_From__c.format('MM/dd/yyyy hh:mm a')); Compile Error: Method does not ...
0
votes
1answer
115 views

XML object creation. Is there any documentation?

I'm currently working on adding custom fields to an object. However I can't find any documentation or something like this which would indicate me to what should I do to create for example picklist or ...
2
votes
1answer
35 views

Getting Empty String while xml parsing

I'm parsing XML using apex but I'm not getting text value in case when data in the form of cDATA, I'm getting an empty string. below is my code. in my case, I m getting an empty string when parsing ...
1
vote
1answer
42 views

Empty XML Fallback?

I'm trying to put some code that pulls in product names, but if that field is blank, I'm getting this error: XML parameter cannot be null or an empty string. Function Name: TransformXML Parameter ...
6
votes
1answer
48 views

Is there a XSD for validating metadata XML files?

So in order to run many parallel projects, we are exporting our metadata to XML within version control. As a result we often have to merge changes from multiple projects that affect the same file (a ....
7
votes
1answer
285 views

Pass null to webservice number field?

What does properly formed XML look like when attempting to pass in a null value for a number field? Let's say I have a SOAP endpoint defined as follows: webservice static void save(MyObject__c ...
1
vote
0answers
24 views

Error while upload data from vf page to excel sheet [closed]

I faced following error while uploading data from vf page to excel sheet.Could you please help me how to resolve this issue. {table}, base64 = function(s) { ...
0
votes
1answer
38 views

Issue while push the code from branch to sandbox

I faced an issue 'valueSettings invalid at this Location in type picklist'.Could you please help me out from this issue. Thank you. regards, Suresh
1
vote
1answer
30 views

Is it possible to group XML content by date with AMPscript?

I want to group the XML content with AMPscript by days. To show headlines in this order: 14 May Headline 1 Headline 2 15 May Headline 3 Headline 4 16 May Headline 5 Headline 6 Headline 7 The ...
0
votes
1answer
88 views

Corrupted Salesforce Objects?

Running into an issue I don't think I've ever seen before. I was recently handed a rather old backup(2+ years) of an old Salesforce org. My initial hope was that I could recreate this org, but im ...
0
votes
1answer
92 views

XML file generated by a SOAP API callout

I developed an API callout to a SOAP webservice, the external system return me an error, how can i see XML file generated by a SOAP API callout?
5
votes
1answer
353 views

Profile Field Level Security missing in XML when retrieve profile changes from scratch org

In our DX project we maintain 4 profiles (3 custom and the System Administrator profile). When a scratch org is created I can push the project and everything deploys correctly including the profiles ...
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
vote
1answer
418 views

How to download a file created by APEX

When user clicks the download button in VF page, the apex code has to generate a xdp file on the fly and should get downloaded in the user machine. The below code creates the attachment. I don't know ...
1
vote
1answer
172 views

Allow Nulls for input parameters in Apex Custom Web Service [closed]

We are enabling few custom web services through Apex to insert data into custom objects. Here we have different data types like Double, Date, Boolean, String. For the inputs of any type except String,...
5
votes
1answer
2k views

Property 'tab' not valid in version 42.0

When trying to push an existing application to a new Spring '18 org, I get the following error: Property 'tab' not valid in version 42.0. The application XML is as follows: <?xml version="1.0" ...
5
votes
1answer
125 views

Named Credential - Merge fields in managed package

I'm working on a managed package where a requirement, out of our hands, is to authenticate to a SOAP API via WS-Security. I was hoping we'd take the strategy of using Named Credentials. This would ...
-3
votes
1answer
62 views

Issue with mapping the fields when there is an apex webservice xml response [closed]

Apex call out has an xml response.How can I map the fields in Salesforce to the response I receieved. I could map the fields like clean etc. But how could I map fields like make,model, year relatively....
2
votes
3answers
184 views

Deflate XML for custom SAML integration?

I need to be able to deflate (or gzip) an XML string for a custom SAML SSO integration. It does not seem that Apex supports this. (It does allow you to compress and HttpRequest, however, that does ...
1
vote
0answers
924 views

Soap webservice callout throws “Policy Falsifed” error : Error code 500

I am trying to make a web service call to an external system. The Gateway to the application server needs a soap signed request (WSS Security). The service provider confirmed authetication happens ...
0
votes
1answer
38 views

Stamp XML as string

my question is very simple. We are doing tests on XML, and to verify the XML I need to simply stamp it (as a string). The XML is located in DE sendable, in a field named HTML__XML. This is my call: %%...
-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 ...
1
vote
1answer
401 views

Extra content at the end of the document While generating xml from Apex

I am trying to render a xml on a VF page with contentType="text/xml" but I am getting an error in Chrome Error in Firefox XML Parsing Error: junk after document element Location: https://...
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....
3
votes
1answer
291 views

NamedCredential soap request authentication headers

I have a WSDL file which can't be imported in Salesforce, so I am currently using the Dom.Document to write my own soap envelope to connect to a webservice. In my soap envelope I have to set ...
-4
votes
1answer
30 views

Callout Unit Test Need help in getting code coverage its getting to 46%

I have written a Callout Class Called RestCallout which makes Callout to an end point, get the httpResponse as xml and from the body of response gets different elements and updates the database. For ...
0
votes
2answers
56 views

How to generated the below XMlStructure Based on list size?

How to generated the below XMl Based on list size? Hi, the below list has 3 records. I need to generate the below XML Structure Based on list size. List<Product_for_Sample_Literature__c> ...
0
votes
1answer
256 views

Parse XML response (with namespaces) returns empty document via res.getBodyDocument()

I connect to Webex and retrieve the timezone list (XML with namespaces) and try to parse response via res.getBodyDocument() or doc.load but I only get document[]. I have read a lot of other similar ...
0
votes
1answer
175 views

Response not received in pure XML format, how would I parse the same to obtain useful information?

I had called an endpoint using HTTP Post request which has sent the response in the form of an XML, but it is not containing the usual start and ending tags. Here is how I called this request from a ...
2
votes
2answers
578 views

Cannot find Data Extension by external key with SOAP API

I have a Data Extension on Sales Force. The External KEY is: 841F2F2C-6D3A-40D3-9F03-53E7CF42CE45. I'm trying to send a XML request as specified in the documentation: Sales Force Documentation ...