Does anyone have any ideas of how to use native CF functions
to return
only the contents - tags and all - of an XML structure, but
without the
XML declaration or parent tag?
If I understand your requirement correctly, I would probably
just use
the CFML xmlTransform() function to process the XML data with
an XSLT
string to return the formated data that I wanted to output.
This should give you an idea of what I'm talking about.
<cfsavecontent variable="someXSLT">
<?xml version="1.0" encoding="iso-8859-1"?><!--
DWXMLSource="../../../ColdFusion/playground/test.xml"
--><!DOCTYPE
xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/article/content">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet></cfsavecontent>
<cfset outputString = xmlTransform(xmlDate,someXSLT)>