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!

XML - schema and javascript problem

Status
Not open for further replies.

Jeroen789

Programmer
Dec 12, 2004
1
BE
Hi to all you smart people out there.

I'm using this script code in my XSL file:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

function loadXML(xmlFile)
{
xmlDoc.async="false";
xmlDoc.onreadystatechange=verify;
xmlDoc.load(xmlFile);
xmlObj=xmlDoc.documentElement;
}

This works fine as long as I'm not assigning a XML - schema to my XML file. When i assigne my schema this error occurs:

"xmlObj" is empty or no object

SO:
This works fine:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl"
href="aankoopbon.xsl"?>
<aankoopbon >
.....
</aankoopbon>

This doesn't:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl"
href="aankoopbon.xsl"?>
<aankoopbon xmlns:xsi="xsi:noNamespaceSchemaLocation="aankoopbon.xsd">
.....
</aankoopbon>

Anyone?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top