Generate Trees from XML with Javascript in HTML

webmasterbeta

New Member
Hi,

I try to build a web site wich shows a tree that I generat from a XML file with JavaScript. Therefore I read a XML file into a DOM object. To show only one node value for testing I wrote the attached HTML-File and I used the XML tree added as comment.
To my mind resultField1 must contain "Johannes" but it contains null. Everytime I try to get the value of a node it is null. To show nodeName, a attributes name or value is no problem.
I'm using the latest Version of mozilla under SuSE 7.2. AND I used the IDL from W3C.

Where is the bug or what am I doing wrong?

Thanks a lot for answer, Lilith
 
Back
Top