login about faq

We noticed that the getXML() method returns the content of nodes HTML Encoded.

<product>Gauze 4" x 4"</product>
is returned as
<product>Gauze 4&quot; x 4&quot;</product>

If you get the content for the product node, xmlProduct.content, it would not be HTML Encoded.

We use getXML() to receive, pass, re-port, exchange the XML, so the pre-encoding does not help AT ALL. There are no parameters to getXML() that I know off.

Is there other ways to suppress this behavior and get an XML branch, or whole message, without HTML Encoding of the content?

Component: XML
Version: 9.4.1, ActiveX

asked Oct 18 '13 at 10:13

Raficus's gravatar image


Here are new builds that change the behavior so that double quotes and single quotes are not automatically entity encoded when in the XML content:

32-bit ActiveX: http://www.chilkatsoft.com/preRelease/ChilkatXml-9.4.1-win32.zip

64-bit ActiveX: http://www.chilkatsoft.com/preRelease/ChilkatXml_x64-9.4.1-x64.zip

An explanation: The xml.Content property returns the entity-decoded content of an XML node. However, the GetXml method returns the XML document, which would most certainly entity encoded special characters such as "<", "&", etc. Any software that is reading an XML document SHOULD and MUST be able to properly decode entities. This is not an error or bug in Chilkat, it's just a behavior that is technically correct and valid, but may not be preferred by some users. Any software that does not handle XML entities is not actually capable of parsing XML documents correctly.


answered Oct 18 '13 at 11:20

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 18 '13 at 10:13

Seen: 3,003 times

Last updated: Oct 18 '13 at 11:20

powered by OSQA