Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 2984

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

1 vote
Accepted

XMl parse data to insert into contact fields respectively

That code needs to be in a class, and then in a method. In other words, what you have is a code snippet, not a complete solution. To get started, you'd wrap the code inside a class and method: public …
sfdcfox's user avatar
  • 502k
0 votes

Parse xml form different nodes by id

for (Dom.XmlNode xmlNode : document.getRootElement() .getChildElement('recordset', null) .getChildElement('record', null).getChildElements()) { Should be: for (Dom.XmlNode xmlNode : document. …
sfdcfox's user avatar
  • 502k
1 vote
Accepted

Can I change the accepted Root element of ApexRest?

This is true for both the XML- and JSON-based parsing options. …
sfdcfox's user avatar
  • 502k
0 votes

Strange result after readMetadata() call

The XML data is technically correct, while the UI is technically incorrect. If "default" is set, but the box isn't shown, no assignment should occur when creating/updating a lead/case record. …
sfdcfox's user avatar
  • 502k
2 votes
Accepted

XMLStreamWriter: Cannot User getText on START_ELEMENT

You can only use getText() when you are in a valid state; therefore, you must first call next() to advance to the next event, then check and make sure that you are in a valid state (e.g. XmlTag.CHARAC …
sfdcfox's user avatar
  • 502k
3 votes

Escape XML Function in VisualForce?

record.field}" /> There's a parameter called "escape" that defaults to true; in other words, when you use this element, it naturally protects you from emitting characters that might be misinterpreted by an XML
sfdcfox's user avatar
  • 502k
1 vote
Accepted

Error when loading an XML String into Dom.Document.load()

You've a typo in your XML. It should be xmlns:SOAP-ENV Instead of xmlns:SOAPENV I strongly suggest you use Dom.Document and Dom.XmlNode instead of manually piecing together strings. …
sfdcfox's user avatar
  • 502k
0 votes

XML request from apex

That XML is fine, though I would generally recommend you use Dom.Document to generate your XML. … Try: req.setHeader('Content-Type', 'application/xml'); …
sfdcfox's user avatar
  • 502k
2 votes

Parsing XML to get child nodes

Unlike JavaScript's Element.querySelectorAll function, XmlNode.getChildElement() and so on doesn't recursively find child elements. <UpdateResponse> isn't the immediate child of <soap:Envelope>, so yo …
sfdcfox's user avatar
  • 502k
3 votes
Accepted

Getting Empty String while xml parsing

According to this idea, CDATA isn't supported. It also includes a workaround you can use for now: public String stripCDATA(String str) { Pattern p = Pattern.compile('<!\\[CDATA\\[(.*?)\\]\\]>'); …
sfdcfox's user avatar
  • 502k
2 votes

call querySelectorAll function in Apex XML Parser?

Instead of using the built-in parser directly, I'd suggest finding an XPath implementation, such as this one. Using a parser means that you have to keep track of the state yourself. You're much better …
sfdcfox's user avatar
  • 502k
0 votes
Accepted

How to add text identifier using addChildElement method in apex XML request formation

EmailType is not a namespace, it's an attribute. The following change to your code should work. dom.XmlNode EmailsBdy = ContactBdy.addChildElement('Email', null, 'ns'); EmailsBdy.setAttribute('EmailT …
sfdcfox's user avatar
  • 502k
1 vote

Deflate XML for custom SAML integration?

You could write your own deflate algorithm, but there's no out-of-the-box algorithm you can call upon.
sfdcfox's user avatar
  • 502k
3 votes

permission, permission sets, XML, objects

The XML looks like: <Profile ...> <classAccesses> <apexClass>MyClass</apexClass> <enabled>true</enabled> </classAccesses> </Profile> You can get the values currently in production … xml version="1.0" encoding="UTF-8" standalone="yes" ? …
sfdcfox's user avatar
  • 502k
2 votes
Accepted

Is it safe to trim my permission set files?

Omitted values will remain the same as they were before deployment. Therefore, if your permission set includes, for example, just one enabled field, then that's the only field you need in your file. T …
sfdcfox's user avatar
  • 502k

15 30 50 per page