Metin
08-09-2005, 05:05 PM
Other than wanting a free T-Shirt, I am writing this post in need of some help.
I am using addNode to add to my dataset like so
pointerName.addNode("mothernode","","{a:30,b:'blah'}")
and this results in a node being created like the following: <mothernode a="30" b="blah"></mothernode>,
instead of: <mothernode a="30" b="blah"/>
If my assumptions are correct, the former causes selectChild() and getNodeCount() to think that it has a child node when in fact it doesn't. This is making it difficult to write a recursive function that traverses the entire dataset. I found one in another post which works fine using the latter type of tag but not with the one that has a closing tag. Is there another way to add a node that doesn't use the </mothernode> closing tag?
Thankyou,
Metin
I am using addNode to add to my dataset like so
pointerName.addNode("mothernode","","{a:30,b:'blah'}")
and this results in a node being created like the following: <mothernode a="30" b="blah"></mothernode>,
instead of: <mothernode a="30" b="blah"/>
If my assumptions are correct, the former causes selectChild() and getNodeCount() to think that it has a child node when in fact it doesn't. This is making it difficult to write a recursive function that traverses the entire dataset. I found one in another post which works fine using the latter type of tag but not with the one that has a closing tag. Is there another way to add a node that doesn't use the </mothernode> closing tag?
Thankyou,
Metin