BarrMan
03-05-2007, 08:26 PM
Hey, I'm using the following code:
Dim xml, obj, url
url = 'page's url in here.
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.setProperty "ServerHTTPRequest", True
xml.load (url)
Set obj = xml.getElementsByTagName("Article")
For Each Item In obj
Response.Write "Test"
Next
I don't see the "Test" output from this script. For other urls it works fine.
Can anyone help me with this?
The xml file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
- <ROOT>
<COMMAND>Command</COMMAND>
<TIME>Time</TIME>
- <Article>
<Article_Id>651</Article_Id>
<Article_Title>Title</Article_Title>
<Article_Head>Description</Article_Head>
<Article_Link>Link</Article_Link>
<Article_PicName>Picture Name</Article_PicName>
<Article_Date>Date</Article_Date>
</Article>
</ROOT>
Thanks!
Dim xml, obj, url
url = 'page's url in here.
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.setProperty "ServerHTTPRequest", True
xml.load (url)
Set obj = xml.getElementsByTagName("Article")
For Each Item In obj
Response.Write "Test"
Next
I don't see the "Test" output from this script. For other urls it works fine.
Can anyone help me with this?
The xml file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
- <ROOT>
<COMMAND>Command</COMMAND>
<TIME>Time</TIME>
- <Article>
<Article_Id>651</Article_Id>
<Article_Title>Title</Article_Title>
<Article_Head>Description</Article_Head>
<Article_Link>Link</Article_Link>
<Article_PicName>Picture Name</Article_PicName>
<Article_Date>Date</Article_Date>
</Article>
</ROOT>
Thanks!