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

learn more… | top users | synonyms

0
votes
0answers
10 views

i need to split a 'export to excel' file in to multiple sheets and need to put style and logo

I am not able to modify it. please help to meet my requirement. Thank you in advance. How to generate excel files with the multiple sheets in VisualForce I saw this code. but unable to modify this ...
0
votes
1answer
21 views

When exactly would a Calloutexception occurs in Salesforce?

I am trying to send a XML from Salesforce to an external system and callout exception occurs time and again . It is occurring sometime but working fine most of the times . What are the cases when a ...
1
vote
1answer
17 views

Eclipse IDE changing class status to 'deleted' does not stick

I am trying to delete a class in production.I have deleted 2 classes successfully by changing the status of the corresponding metadata.xml to deleted.But in one class while I am trying to change the ...
0
votes
1answer
21 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
41 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 ...
0
votes
1answer
28 views

XML parsing attributes using XMLstreamreader

I am trying to parse through an XML which looks something like This is a xml response of an image which i need to render in my page,can somebody help me out to parse this through XmlStreamReader . ...
3
votes
0answers
30 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
0answers
36 views

Error in request then using WSDL2APEX

Im facing an issue when I try to import my WSDL into Salesforce and generate APEX code from this one. When I add a targetnamespace to my second schema in the following file, which is required in ...
0
votes
1answer
29 views

Unable to create SOAP request for inserting child object

I have a scenario where i need to perform create opertion.I have imported the Enterprise salesforce wsdl and trying to perform create operation on a junction object. I have a junction object ...
0
votes
0answers
12 views

Convert <sf:> tags to another formats

I am new to SF so I don't know much more about it, I am getting a record from SF api for a call details of a number so it returning me data in tags like I am unable to get data from these tags, ...
1
vote
1answer
72 views

How to parse response with XMLStreamReader or DOM?

Hi Team I am getting the below response from a webservice call <response> <status>sucecss</status> <Message>xyz..........</Message> </response> I have trying to ...
1
vote
1answer
55 views

Refine XML parse method

I am looking to refine functioning code. I am attempting to parse XML using the DOM and then display it on a visualforce page. Right now I am parsing each node into 3 lists of strings then calling ...
1
vote
1answer
79 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) ...
2
votes
1answer
64 views

getting the query result in json format when working with sforce.connection.query

I have this javascript code in a VF page where I'm trying to fetch records from the DB. I'm getting back an xml format but I need it as a json format. Is there a way to get the result records in json ...
1
vote
0answers
50 views

Is there any way to validate XML against a schema in Apex?

I use XMLStreamReader to load the xml file. I was wondering if there is a way to validate this against xml schema provided in salesforce?
0
votes
1answer
109 views

How to Use an XML Static Resource to Program Unit Tests?

I've created a static resource XML file and uploaded it to my test org. My code coverage is around 41% and needs improvement due to there being numerous nodes in the XML file that need to be loaded ...
0
votes
2answers
379 views

Suggestions for Unit Tests on an APEX Class that Calls a Web Service and Retrieves XML

I am attempting to write a series of unit tests on a 2300+ line APEX class. The gist of the class is that it makes a Rest Request and retrieves an XML object from a web service. The class then ...
3
votes
1answer
40 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 ...
0
votes
1answer
110 views

How can i send data from external page to salesforce visualforce page without salesforce authentication

I am trying to create a Visualforce page and a controller to receive request from an external web page . This external page will send an XML file to my page and I have to using controller to get this ...
1
vote
3answers
102 views

Not able to update Rich text field with XML data

I have created a custom field(Rich Text field) with the Case object and am trying to update that fiekd value with XML data while clicking a button. If I hard code the value like ...
0
votes
1answer
64 views

Parsing XML and getiing the root element

I am trying to parse an xml and get its root element but when I try it Im getting all the elements as a result of getrootelement() method. String xml = '<results>' + '<status code="ok"/>' ...
0
votes
0answers
130 views

SOAP SOQL query response extract XSD file generation

I would like to know how I can generate XSD schema definition file from an enterprise.WSDL.xml or partner.WSDL xml file of a certain extended Salesforce web service in order to parse returned results ...
2
votes
1answer
234 views

How to pull content from this RSS feed (ExactTarget)?

I have been succesful using this code to grab content from simple RSS feed: %%[Var @xml, @titles, @title, @links, @link, @descs, @desc, @dates, @date, @cnt Set @xml = ContentArea("130742") Set ...
1
vote
1answer
79 views

Managed Package XML Namespace Error

Looked over some of the previous posts that may be related, but unfortunately I have no idea about using webservices and XML. Another developer did this class, and it works great in DE org, but as a ...
1
vote
1answer
462 views

How to convert an Dom.XMLNode to its String representation in order to get CDATA content

The context is that my ELEMENT node does not contain a TEXT node but a CDATA element as in the following: <Root> <SomeNode> <![CDATA[Some message that i need to get]]> ...
2
votes
0answers
306 views

Metadata API Call: Web service callout failed

I am creating sample example from http://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/ I am getting following exception on Click of the button Whats wrong? Web ...
1
vote
1answer
196 views

OPEN CTI XML definition file What is it and how it works?

I'm working now with open CTI and my question is related to the CTI XML definition file. I would like to know how it works, I saw it has many sections and many items, but it affects my code, what can ...
2
votes
1answer
2k 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 ...
1
vote
0answers
237 views

REST API Request using text/xml returns UNSUPPORTED_MEDIA_TYPE

The documentation tells us that XML, however un-hip, can be used as a request format. The reality seems to be only HTTP 415 errors with UNSUPPORTED_MEDIA_TYPE. Class: ...
4
votes
1answer
255 views

Calling custom apex as REST with XML results

So you want to call your Apex classes from outside salesforce via RESTful HTTP and need XML resurned even though it's uncool. The official documentation suggests it's supported by simply adding the ...
4
votes
1answer
234 views

Wrong Tags Parsing XML from API

I am trying to parse a file from our meeting server with XML data. The data is structured like this: <results> <status code="ok"/> <principal-list> <principal ...
2
votes
1answer
224 views

UPDATE on CustomField using the SOAP Tooling API

I'm using the SOAP Tooling API to try and update a CustomField (posting to /services/Soap/T/29.0) The method signature is SaveResult[] update(sObject[] sObjects) - and CustomField extends sObject so ...
2
votes
1answer
409 views

XMLStreamWriter: Cannot User getText on START_ELEMENT

I have a requirement to get the text of the Start Element of XML. I'm using the XMLStreamWriter class. If My XML is as follows <errorReturned errorCode="100">This is a ...
3
votes
1answer
2k views

Salesforce Callout Exception

I created a Salesforce client using "Generate class from WSDL" feature. When i try to call the web service, throws the following error: "System.CalloutException: Web service callout failed: ...
12
votes
1answer
1k views

How to mass populate State & Country picklist values

I have played with the State & Country picklist value UI for adding them, and it works OK for small amounts, but it is not meant for batches. I have 760 additional states I need to add for various ...
4
votes
2answers
2k 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 ...
1
vote
1answer
261 views

Create a custom Apex class or custom object at run time

We have a need where we need to parse an xml schema and dynamically create a custom object with fields at run time. Have any of you guys done this and if so can you share code snippets? If the custom ...
7
votes
1answer
283 views

Is there a way to get the SOQL behind a report?

I have a (reasonably) Year on Year analysis summary report that I use in Salesforce and I would like to create this report in SOQL or at least create the SOQL equivelant to return the same results, ...
2
votes
1answer
445 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: ...
0
votes
1answer
221 views

How to get field Name from Map

I am trying to map CSV file with Salesforce Account field using XML. I am getting Account field from Map. But when i use the name i am getting error. Error: Compile Error: Method does not exist or ...
0
votes
1answer
762 views

How to get all the child text from a xml file

I need to get all the values from child node <fields> <field1>Name</field1> <csv1>field1</csv1> </fields> But i ...
0
votes
0answers
206 views

How to write into an existing document

i have uploaded a doc and trying to access it from my Apex code. But now i need to insert some information into my doc. How can i do this i tried it by using my code public class readXmldemo{ ...
0
votes
0answers
834 views

Writing into XML file from Apex code

I have created a xml file and uploaded into document. I am reading the xml file from my apex code. I am able to add more nodes into the xml file by using addressNode.addChildElement and also tried ...
1
vote
1answer
416 views

PHP Soap API returning XML string

I have successfully connected to SalesForce using the Soap API and the Force.com toolkit for php. When returning records, however, I am getting part xml responses: SELECT Id, Name, ...
1
vote
2answers
430 views

Using Apostrophes in Apex

I am sending an Http request who's body contains XML payload. Data sent over can have apostrophes which causes my palyload to error out. XML payload looks something like ...
2
votes
2answers
947 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. ...
3
votes
1answer
3k views

XML parsing using XMLstreamreader

I am trying to parse through an XML which looks something like <e:UDFs> <e:UDF name="Comments_20for_20Approvers">Cloning req 379023 - bypassing ...
5
votes
1answer
231 views

Where to edit XML for “Lookup Filter” in Force.com

I created custom lookup fields for my custom object in web UI. Some of these lookup fields have lookup field filters. I need to create the same filter for many other similar lookup fields. I ...
2
votes
2answers
3k views

apex program to create and download a file

So I'm trying to find a way to download a report from salesforce programmatically, to a local machine. so, I've found the XMLStreamWriter class, and am writing the XML just fine... I'm just wondering ...
0
votes
0answers
145 views

Need to display a helpText beside a tab

Extension to my Previous Question which is placed here "Hyperlink in help text which comes from XML" My requirement was changed Now and it was a bit tough one.... :( My xml is something like this ...