to access an XML file using the DOM, you must link the XML file to an HTML Web page.
Sample code
1. Test.xml
<?xml version= "1.0" encoding= "gb2312"?>
<?xml-stylesheet href= "test.xsl" type= "text/xsl"?>
<entry>
<title>entry with images</title>
<date>august, 2003</date>
<author>Kevin</author>
<idnum>000033</idnum>
<permalink>http://alazanto.org/xml/archives/000033.xml</permalink>
<body xmlns:html= "http://www.w3.org/1999/xhtml" ><! [cdata[]]></more>
<comment-link>http://alazanto.org/xml/archives/000033_comments.xml</comment-link>
<comment-count>6</comment-count>
</entry>
2. test.xsl
<?xml version= "1.0"?>
<xsl:stylesheet xmlns:xsl= "Http://www.w3.org/1999/XSL/Transform" version= "1.0" >
<xsl:template match= "/entry" >
<body>
<xsl:value-of select= "title"/>
<xsl:value-of select= "Body" disable-output-escaping= "yes"/>
</body>
</xsl:template>
</xsl:stylesheet>
The key lies in the use of namespaces xmlns:xsl= "Http://www.w3.org/1999/XSL/Transform" and output plus disable-output-escaping= "yes"