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. 


--------------------------------------------------------------------------------

A string literal was expected, but no opening quote
character was found. Error processing resource
'http://localhost/Create...

 <font face="Arial" size=2>
-------------------------^
 
Please help on how do i correct this problem.


        
                
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
 


Reply via email to