[thelist] XML problem
Stevenson Ngila
Stevenson at epr.footman-walker.com
Tue Nov 12 06:17:01 CST 2002
i have an XML document below:
<!---Dont cache this page--->
<cfheader name="expires" value="#Now()#">
<cfheader name="pragma" value="no-cache">
<cfcontent type="text/xml">
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="addDiscussionForm.xsl"?>
<drdiscussionform>
<cfif #IsDefined( "URL.DRID")#>
<cfquery name="getTitle" datasource="#Application.theDb#">
SELECT drTitle
FROM DevelopmentRequirement
WHERE drID=#DRID#
</cfquery>
<cfoutput query="getTitle">
<discussiondetails>
<drid>#URL.DRID#</drid>
<drtitle>#drTitle#</drtitle>
<drdtitle></drdtitle>
<drddescription></drddescription>
</discussiondetails>
</cfoutput>
</cfif>
</drdiscussionform>
when i try to access it i get the error below:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
----------------------------------------------------------------------------
----
Only one top level element is allowed in an XML document. Error processing
resource 'http://ngila-2000/AddDiscussionForm.cfm?DRID=880'. Line 1,
Position 101
<script language='JavaScript' type='text/javascript'
src='http://ngila-2000/functions.js'></script><link rel='stylesheet'
type='text/css' href='http://ngila-2000/styles.css'>
----------------------------------------------------------------------------
------------------------^
What could be the problem?
Thanks,
Stevenson Ngila
Footman-Walker Associates Ltd
http://www.footman-walker.co.uk
More information about the thelist
mailing list