Ok then, sorry I could not help :) ============================================ Bryan F. Hogan Director of Internet Development Macromedia Certified ColdFusion MX Developer Digital Bay Media, Inc. 1-877-72DIGITAL ============================================
-----Original Message----- From: SMR [mailto:info@;smrenterprises.com] Sent: Monday, November 04, 2002 12:15 PM To: CF-Talk Subject: Re: CFXML newbie needs help > Didn't solve the problem. > > ----- Original Message ----- > From: "Bryan F. Hogan" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, November 04, 2002 11:38 AM > Subject: RE: CFXML newbie needs help > > > > Looks like you have an extra space, change this line "xsi: > > noNamespaceSchemaLocation="C:\CfusionMX\wwwroot\doc.xsd" > > > > to xsi:noNamespaceSchemaLocation="C:\CfusionMX\wwwroot\doc.xsd"> > > > > ============================================ > > Bryan F. Hogan > > Director of Internet Development > > Macromedia Certified ColdFusion MX Developer > > Digital Bay Media, Inc. > > 1-877-72DIGITAL > > ============================================ > > > > -----Original Message----- > > From: SMR [mailto:info@;smrenterprises.com] > > Sent: Monday, November 04, 2002 11:11 AM > > To: CF-Talk > > Subject: CFXML newbie needs help > > > > > > Just trying to do a simple CFXML output....but the webpage just hangs and > > doesn't error out or anything.. like its running in a never ending > loop..The > > code below is based on an example from the CFMX New Riders book.. > > > > > > Here is my xsd: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by SMR > (SMR) --> > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > > elementFormDefault="qualified" targetNamespace="http://127.0.0.1:8500/" > > xmlns="http://127.0.0.1:8500/"> > > <xs:element name="document"> > > <xs:complexType> > > <xs:sequence> > > <xs:element name="doc_file_name" type="xs:string"/> > > <xs:element name="doc_description" type="xs:string"/> > > <xs:element name="doc_filesize" type="xs:string"/> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > </xs:schema> > > > > > > Here is my cfm: > > > > <cfquery name="getdoc" datasource="ncw" dbtype="ODBC"> > > select doc_file_name, doc_filesize, doc_description from document > > </cfquery> > > Query Done... > > > > > > <cfsavecontent variable="tempxml"><?xml version="1.0" encoding="UTF-8"?> > > <doc-list xmlns:xsi="http://127.0.0.1:8500/" xsi: > > noNamespaceSchemaLocation="C:\CfusionMX\wwwroot\doc.xsd"> > > <cfoutput query="getdoc"> > > <document> > > <doc_file_name>#Trim(XMLFormat(doc_file_name))#</doc_file_name> > > <doc_description>#Trim(XMLFormat(doc_description))#</doc_description> > > <doc_filesize>#Trim(XMLFormat(doc_filesize))#</doc_filesize> > > </document> > > </cfoutput> > > </doc-list> > > </cfsavecontent> > > Save content done... > > > > <cfset myXMLDocument=XmlParse(tempxml)> > > This is my xml document > > <cfdump var="#myXMLDocument#"> > > > > <cffile action="write" file="#ExpandPath(".")#/document.xml" > > output="#ToString(tempxml)#"> > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

