Xml functions help
I have two questions about the Xml functions. First, when I use the XmlGetChildNodes function it is returning a 1 for a node that does not have any children. It returns itself as the child. It should be returning a 0 if the node does not have any children. Has anyone else had this problem? Second, when I use the XmlGetAttributeByIndex function I get an error because the format I am using is "<child1 attr1='avalue1'>. I think it's expecting "<root><child1 attr1='avalue1'>" so it is not picking up the attribute value. Anybody ever run into either of these problems and if so how'd did you get around them? Thanks.
Re: Xml functions help
XmlGetChildNodes returns 1 because the text value of your node is a child node of type text. therefore it is counted as a separate node - thats xml specific i think!