Problem with reading XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zahid
    New Member
    • Sep 2006
    • 2

    #1

    Problem with reading XML

    hi, i am new o XML , i have a problem reading XML in ASP .the problem is the XML file has a <!DOCTYPE refering to external .dtd file when i remove this tag it works fine but when i add it it gives me an error.
    if u have any idea why its happening ? i will appericiate your help.
    the code is :
    Set xml = Server.CreateOb ject("Microsoft .XMLDOM")
    xml.async = False
    xml.load (Server.MapPath (".")&"\files\" &request("file" ))
    xml.documentEle ment.chidNodes. length
    it gives me an error on the last line "Object required".
    thanks
Working...