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

In the DOM, everything in an XML document is a node.

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 ...
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. ...
0
votes
2answers
90 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> ...
0
votes
0answers
56 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 &...
1
vote
1answer
145 views

Issue with XML formatting when using XmlNode.getChildElements()

Step - 1: Create xml structure Xmlstreamwriter xmlW = new Xmlstreamwriter(); xmlW.writeStartDocument('utf-8','1.0'); //Salesinvoices xmlW.writeStartElement(null,'SalesInvoices', null); xmlw....
0
votes
2answers
951 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
1k views

Root Element with two or more namespace in a XML Document

How can I add two or more namespace on root element in a XML Document? In Java, I create the XMLNode with two namespace and then I set it as root element in a XML Document. In Salesforce, I have ...
2
votes
0answers
218 views

How to convert an Dom.XMLNode to its String representation

Is there a way to convert an XMLNode element to it's string representation? So if my XMLNode is <div>testing</div>, and I want a string representation of the element and text "<div>...
0
votes
1answer
159 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
471 views

DOM Document with XMLNode class does not giving perfect result

I need to implement a visual force page which contains two inputTextArea boxes. These textboxes should form like one box is left side for input and another one is right side to display result. This ...
0
votes
1answer
370 views

Export records as xml

In salesforce I want to export records as xml and am stuck at getting child object records of same object. (Self relationship between interaction and I want to get Parent and its child) Here is the ...
1
vote
1answer
363 views

CPU Timeout limit exceeded exception caused for existing working code after SF upgraded to Summer'16,. Any idea if anything updated in Summer'16

I have a code which was working for my previous packages. But after the Summer'16 release I am getting the CPU timeout exception for my codebase which was working earlier. Is there any thing update ...
0
votes
1answer
1k views

converting xml response using Document class and xmlNode

I have to actually generate the following xml into a dom object, but failing to do so. This is my actual XML response : <Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"> &...