Hi all,
I have the following code below saved in
CreateXML.asp
as my file name.
<[EMAIL PROTECTED]"VBSCRIPT"%>
<%
Response.Buffer = False
Response.ContentType = "text/xml"
%>
<?xml version="1.0"?>
<%
Response.write makeXML()
Function makeXML()
Dim objParser
Dim book
set objParser =
Server.CreateObject("microsoft.XMLDOM")
'build an xml document using the dom.
'create the root node
Set objParser.documentElement =
objParser.createElement("books")
'create the book element and child elements
set book = objParser.createElement("book")
book.appendChild objParser.CreateElement("title")
book.appendChild
objParser.createElement("quantity")
book.appendChild objParser.createElement("ISBN")
'set the PCDATA values
book.childNodes(0).text = "Professional XML"
book.childNodes(1).text = "30"
book.childNodes(2).text = "1-861003-11-0"
'append a clone to the document
objParser.documentElement.appendChild
book.cloneNone(true)
makeXML = bojParser.xml
end Function
%>
I don't understand why it's giving me this error
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.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/