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
0
votes
0answers
494 views

Setting page orientation when VF is exported to excel

I am trying to format excel file that is exported for VisualForce page. I am able to export the data in a table with cell width that I need. For printing, I want to set the page orientation:Landscape ...
9
votes
1answer
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 ...
2
votes
1answer
824 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
0answers
362 views

Mock HTTP Call Out In Test to Return XML

I am very new to HTTP Callouts and now I am in the testing phase. My HTTP Callout returns XML This is the link. I input a company already, soulcycle, in case anybody wanted to see what was being ...
4
votes
1answer
455 views

For a new class should i upload meta.xml to github?

When I write a new class and need to push the class to svn/git do I need to upload the -meta.xml file also? or just the .cls file?
1
vote
2answers
351 views

Row Count error

I wrote a code that reads that xml data and extracts all the values, separate the First Name from the Last Name and updates the DE, but I am still getting an error: "Invalid index (parameter 2) ...
1
vote
0answers
66 views

Update DE using data from BuildRowsetFromXml

I have an xml export that I need to use in order to send email to the users from the xml, to separate the ContactName in to FirstName and LastNameand and also to update a DE. The content of the xml is ...
0
votes
1answer
56 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:...
4
votes
1answer
906 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> <...
1
vote
1answer
31 views

Can I change the accepted Root element of ApexRest?

Possibly a bad question, I am exposing a simple ApexRest Class to accept post's from an external source. example bellow: @RestResource(urlMapping='/user_defined_type_example/*') global with sharing ...
2
votes
0answers
110 views

Creating the signature value of a digital signature “manually”?

I need to sign some xml. The issue is that I cannot use the native Salesforce Crypto.signxml() method because I need to sign the soap:body and place the signature in the soap:header element, and this ...
1
vote
1answer
526 views

How to build an integration with rest API in apex using XML

Situation I need to build a connection from Salesforce to "post" to a rest api. The recipient has given me XDS schema files of the data to be sent over. My Current Plan Build a sObject to be the ...
1
vote
0answers
87 views

GET XML via AMPScript

We are currently in the process of trying to get XML data in our marketing cloud emails. One of the solutions i am working on is trying to get the XML via amp script then populate the information via ...
2
votes
2answers
228 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
349 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
285 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
273 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
194 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 ...
5
votes
1answer
160 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> &...
0
votes
1answer
336 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
1answer
2k views

test class for DOM.XMLNode response in HTTPcallouts in post method

How can I write a test class with DOM.XMLNode response? request.setBody('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header/><Body><login xmlns="urn:partner.soap....
2
votes
0answers
522 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: ...
2
votes
3answers
1k 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
1answer
226 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 ...
1
vote
1answer
293 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 ...
2
votes
1answer
2k 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
269 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
156 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
113 views

Response as HTML instead of XML [closed]

How to get response as XML for below URL URL
3
votes
2answers
597 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": ...
0
votes
0answers
22 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
1answer
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 ...
1
vote
1answer
2k views

Using DOM to parse API Response. How to get subchild elements?

I know there are some questions on this topic already. I have tried to implement them myself, but I've been stuck and need to try and get some help. I am a new graduate on my first project at a new ...
0
votes
1answer
518 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 ...
3
votes
1answer
377 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
74 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 ...
7
votes
1answer
247 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
708 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
32 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
62 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
56 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
209 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?
6
votes
4answers
1k views

Escape XML Function in VisualForce?

Currently, every field I can output easily by modifying the sObject on the back-end with my controller by using the following code: for(sObject example: ExamplesToHaveXML) for(Schema....
3
votes
0answers
223 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
3k 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 ...
5
votes
4answers
3k views

Deploying destructiveChanges.xml - Error parsing package.xml

Wondering if someone can help me with this. I'm trying to delete some components with the migration tool (Ant). However when I try to deploy, I'm getting the following error: *********** ...
1
vote
1answer
604 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
4k 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
349 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
87 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....

1 2
3
4 5
7