I'm using the ns_xml module something like this:
(with < removed here)

set string {?xml version="1.0"?>
product>
 attribute name="CategoryCode">11/attribute>
 attribute name="SubCategoryCode">21/attribute>
/product>}

set id [ns_xml parse $string]

set root_node [ns_xml doc root $id]

set children [ns_xml node children $root_node]

But the list returned as children is 2n + 1 times the number of nodes
(n). Every other node is empty.

Any reason this is so?

--Tom Jackson

Reply via email to