Trapped in the World of Matter
echoes in the ether

Home
Get Email Updates
My LiveJournal
Fellow Evil Genius
Nobodys Home
Kenny's Journal
Fresh Meat
Slashdot
Something Positive
Bruno
XML-RPC
SOAP
O'Reily Net
Email Me

Admin Password

Remember Me

47511 Curiosities served
Share on Facebook

XML on ColdFusion MX
Previous Entry :: Next Entry

Read/Post Comments (0)

Parsing XML with ColdFusion MX turns out to be a bit more difficult than was originally advertised. Here's a few "Gotchas"

First off, ColdFusion's XML parser is (by default) not case sensitive. It's a bit of a toss up as to whether or not this is a good thing or a bad thing. The rest of ColdFusion is case insensitive, but the XML "standard" defines case-sensitivity to be the norm. When it comes down to it, if your'e in a ColdFusion-only world, case-insensitivity is no big issue, but if you're interacting with non-CF systems be sure that you're using XmlParse( foo, "yes" ) to force case sensitivity.

Secondly, DTDs can cause major problems. Supposedly the XML parser for ColdFusion is a validating parser, meaning it will read the DTD and verify that the XML contained conforms to the DTD. The problem is, since your XML is parsed from a string, not directly from the file system, relative DTDs (such as ) will break the parser. You must use a fully qualified DTD, or remove the DOCTYPE from the document so that it will not try to validate.


Read/Post Comments (0)

Previous Entry :: Next Entry

Back to Top

Powered by JournalScape © 2001-2010 JournalScape.com. All rights reserved.
All content rights reserved by the author.
custsupport@journalscape.com