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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple nodes not displaying

Status
Not open for further replies.

kafmil

Technical User
Jul 15, 2002
71
AU
I have an xml document that I have made that I am converting into a html page using xsl and asp. When I have one sub node(item) under the main node(content) the DOMDocument returns null, but when it has only one subnode(item) the page displays perfectly. The xml is structured like this:

<content attribute1=&quot;example&quot; attribute2=&quot;example&quot;>
<item attribute1=&quot;example&quot; attribute2=&quot;example&quot;>
<field attribute1=&quot;example&quot; attribute2=&quot;example&quot;/>
<field attribute1=&quot;example&quot; attribute2=&quot;example&quot;/>
<field attribute1=&quot;example&quot; attribute2=&quot;example&quot;/>
</item>
<item attribute1=&quot;example&quot; attribute2=&quot;example&quot;>
<field attribute1=&quot;example&quot; attribute2=&quot;example&quot;/>
<field attribute1=&quot;example&quot; attribute2=&quot;example&quot;/>
<field attribute1=&quot;example&quot; attribute2=&quot;example&quot;/>
</item>
</content>

The field nodes seem to have no effect on the Dom object. Can anyone help!!
Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top