Jump to content

NodeTypes and Code Formatting


jesh

Recommended Posts

OK, XML gurus, I just noticed in XHTML and using the XML DOM that the following is true (in Firefox).This td element contains 5 child elements - 2 ELEMENT_NODEs and 3 TEXT_NODEs:

<td>	<a href="#">link</a>	<img src="" /></td>

Whereas this td element contains only two elements - 2 ELEMENT_NODEs:

<td><a href="#">link</a><img src="" /></td>

Is this true of all XML documents? Does this XML document:

<node>	<node />	<node /></node>

Contain 60% more elements than?:

<node><node /><node /></node>

If so, anyone want to venture an answer as to why this is so?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...