File does not parse

by "geenorm" <mailroom(at)geenorm.com>

 Date:  Wed, 26 Apr 2000 06:05:42 -0400
 To:  <hwg-xml(at)hwg.org>
  todo: View Thread, Original
Hello all,

Would someone look at the following code and give me a best guess about why
it is not valid. When I try to validate I get the this error message.
Error Description: Invalid xml declaration.
Error Number: -1072896681
Error File Position: 60
Error Line Number: 4
Error Line Character: 4



 <?xml version="1.0"?>
---^

This is the file that I am trying to validate.

<html>
<p>Below is an XML island</p>
<XML ID="xisle">
	<?xml version="1.0"?>

		<!DOCTYPE xdoc [
		<!ELEMENT xdoc (greeting)*>
		<!ELEMENT greeting (#PCDATA)>
		<!ENTITY dom "document object model">
		<!ATTLIST greeting
			  applause
			type CDATA #IMPLIED

		>

		]>

<xdoc>


                     <greeting>Hello HTML!</greeting>
                     <greeting>Hello XML!</greeting>
                     <applause type="sustained"/>

</xdoc>
</xml>
<script>
		//create an XML document object
		var myDoc=xisle;
		var rootEl=myDoc.documentElement;
		var x=myDoc.childNodes;
		var z=x.length;
		for (var i=0; i< z; i++)
		{
		document.write(x(i).nodeType+ " | ");
		document.write(x(i).nodeName+ " | ");
		document.write(x(i).nodeValue + "<br>");
		}


</script>
</html>

Greg Norman
geenorm.dtp
http://www.geenorm.com
mailto:geenorm(at)geenorm.com

HWG hwg-xml mailing list archives, maintained by Webmasters