I am creating XML using the <CFXML tag. I am trying to insert this <!DOCTYPE 
NewsML SYSTEM 
"http://www.newsml.org/dl.php?fn=NewsML/1.2/specification/NewsML_1.2.dtd"; [
        <!ENTITY % xhtml SYSTEM 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> into the head of the 
newly formed XML something like so

<cfxml variable="xmlArticle">
<!DOCTYPE NewsML SYSTEM 
"http://www.newsml.org/dl.php?fn=NewsML/1.2/specification/NewsML_1.2.dtd"; [
        <!ENTITY % xhtml SYSTEM 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 
<NewsIdentifier>
   <ProviderId>Health Interactions</ProviderId>
   <DateId>#DateID#</DateId>
   <NewsItemId>#id#</NewsItemId>
   <RevisionId Update="#UpDateStatus#" 
PreviousRevision="#PrevRevID#">#RevisionID#</RevisionId>
   <PublicIdentifier/>
</NewsIdentifier>
</cfxml>

The <!Doctype etc..makes it throw a not valid xml error. Is there a way round 
insert the Doctype into the top of the newly created XML?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281505
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to