sherly,
here is an example (I simply add nodenames and content to a string "test")
var MarkObjectNodes=oXML.selec
for (i=0; i<MarkObjectNodes.length; i++)
{
for (j=0; j<MarkObjectNodes[i].child
{
test = test + (MarkObjectNodes[i].childN
test = test + ("=");
test = test + (MarkObjectNodes[i].childN
test = test + ("<br />");
}
}
you can fill in your logic yourself, by testing for the nodeName and adding the value or a "-"
cheers
Geert
Main Topics
Browse All Topics





by: GertonePosted on 2006-11-12 at 11:49:58ID: 17926138
Hi sherly,
selectNodes gives you the set of nodes that do exist
so your result is a pretty logical one
why don't you select the MarkObject
and access the childNodes, if existent as childnodes of this MarkObject node
Then you are sure that the allignment is correct
Cheers!