22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

The XML document object<br />

<strong>ColdFusion</strong> represents an XML document as an object, called an XML document object, that is<br />

much like a standard <strong>ColdFusion</strong> structure. In fact, most <strong>ColdFusion</strong> structure functions,<br />

such as , work with XML document objects. For a full list of <strong>ColdFusion</strong> functions that work<br />

on XML document objects, see “Functions for XML object management” on page 1259.<br />

You can look at the overall structure of an XML document in two ways: a basic view and a<br />

DOM (Document Object Model)-based node view. The basic view presents all the<br />

information in the document, but does not separate the data into as fine-grained units as the<br />

node view. <strong>ColdFusion</strong> can access XML document contents using either view.<br />

A simple XML document<br />

The next sections describe the basic and node views of the following simple XML document.<br />

This document is used in many of the examples in this chapter.<br />

<br />

<br />

<br />

<br />

Almanzo<br />

Wilder<br />

<br />

<br />

Laura<br />

Ingalls<br />

<br />

<br />

The XML document object 1243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!