...

View Full Version : Get content of html over url in XML



DJAJ
03-28-2006, 12:55 AM
Hi!

Following Element of an XML-File is given:


<element media="1" url="./folder1/1/2/2/index.html"/>

Now Im trying to get the content in the index.html (the <p>-Tags) and write the result into an new xml-element.

With

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
var objNodeList;
xmlDoc.async = false;
xmlDoc.load("my.xml");
if (xmlDoc.parseError.errorCode != 0) {
var myErr = xmlDoc.parseError;
alert("You have error " + myErr.reason);
} else {
objNodeList = xmlDoc.getElementsByTagName("element");
for (var i=0; i<objNodeList.length; i++) {
alert(objNodeList.item(i).xml);
}
}

I get the tag element, but how do I get the content of the index.html dynamically ?

Thanx for any help!
AJ



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum