Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm stuck: XML DTDs vs Javascript Loading

Status
Not open for further replies.

pfft

Programmer
May 29, 2003
1
AU
My XML document needs to have a DTD.

I want to load it dynamically with javascript except... when I have the DTD in, it refuses to load.

When I load it without the DTD, however, it loads just fine... how can I include the DTD method?

I'm using the code, adapted from the W3

var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("dragon.xml")

// Load XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("dragonStyles1.xsl")

// Transform
document.write(xml.transformNode(xsl))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top