Note that there are some explanatory texts on larger screens.

plurals
  1. POxml files with same content differently parsed
    primarykey
    data
    text
    <p>I have an xml file.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;channel&gt; &lt;item&gt;content with special character é&lt;/item&gt; &lt;/channel&gt; </code></pre> <p>Assume that the above is the xml file, except with content from a product catalogue, with a lot more tags and content. This is created using the following process:</p> <ol> <li>call database from coldfusion file</li> <li>get content from database with procedure and return to coldfusion file</li> <li>create an xml file in coldfusion (just by using a filename, ex: "filename.xml")</li> <li>write the contents to the file by looping through the query in coldfusion and adding product per product to the xml file</li> </ol> <p>This gives me errors when I try to open the file in Firefox (my way of testing the parsing of the xml file). Tells me that I have some special characters that need escaping ("xml not well-formed" or something like that). So I put CDATA tags inside these xml tags, which should clear this up, right? It doesn't. It keeps stumbling over special characters, not just the ones that are reserved for xml (&amp;, &lt;, >, ..).</p> <p>Here's when I started loosing it. After some trying and testing in creating smaller xml files manually (not through coldfusion), I got it to work, just by dropping the CDATA tags and just inserting the above code. Firefox parses the above code just fine. So after some thinking, I just copied the entire contents of the faulty file, the original one, to a brand new manually created xml file (.txt --> renamed to .xml) and voila, no more errors.</p> <p>Can somebody please explain to me how, in this case, 2 seperate files, with the exact same content, copied from the first to the second, get parsed differently. The first one showing multiple errors on special characters, the second one have no problem with these at all..? Please, someone, before I go berserk at my desk here.. >_></p> <p><strong>Edit 1:</strong> When I say special characters, I specifically mean utf-8 characters. I'm not talking about the characters reserved for xml (&amp;, &lt;, >, ...), I already escape these.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload