• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 34. XML > XML in ColdFusion

XML in ColdFusion

ColdFusion has built-in support for reading, writing, and manipulating XML data. Low-level functions allow for a more granular level of access, while higher-level functions and tags abstract and simplify common operations.

XML Documents vs. XML Document Objects

An XML document is simply a big string. While this makes moving and storing the XML data easy, it presents problems when it comes to extracting and working with specific elements. An easier way to work with XML is by treating it as a tree: a hierarchical view of the data. In ColdFusion, this hierarchical view is the document object—essentially a big nested ColdFusion structure. The structure contains all the XML document's data stored in arrays and structures that are given the names of the XML tags. This form of representation makes working with XML data very easy indeed.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint