Dan
10-17-2002, 06:10 AM
Can i use the same tag name for DOM? I thought that if we want to use the same tag name,
all we have to do is to change the .item(...).text?? Please help.
This is what i type in xml:
<page>
<!--Unit 1.1 Page 1//-->
<title>Definition of Communication</title>
<para>Communication is a process involving the sorting.....</para>
<para>Raymond Ross Speech Communication 6th edition</para>
</page>
This is what i type in html:
para.innerText=
xmlDoc.getElementsByTagName("para").item(0).text
para.innerText=
xmlDoc.getElementsByTagName("para").item(1).text
all we have to do is to change the .item(...).text?? Please help.
This is what i type in xml:
<page>
<!--Unit 1.1 Page 1//-->
<title>Definition of Communication</title>
<para>Communication is a process involving the sorting.....</para>
<para>Raymond Ross Speech Communication 6th edition</para>
</page>
This is what i type in html:
para.innerText=
xmlDoc.getElementsByTagName("para").item(0).text
para.innerText=
xmlDoc.getElementsByTagName("para").item(1).text