Well most of the document has been sliced and diced, how are we to get to the comment, which also happens to be a node in the XMLDOC? Review the following snippet. The "comment" happens to be a comment to the root element rather than to the document itself. Also note that trying to cfdump a string gets you a string and it is only when you cfdump a structure that you would get the structure of the node, as we have seen in the previous examples.
This tutorial clearly shows two ways to probe the XMLDOM in ColdFusion. In the first method, it accesses via the object created using Microsoft ActiveX, and in the second the XMLDOC object is probed using its XML File. The syntax of accessing is different and the reader is warned to check which of these are used. In case you are using the second method with XMLDOC via this file reference, please refer to Macromedia's documentation. The detailed example illustrated in this tutorial should help in understanding the documentation.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |