Hi Keith,
Keith Hutchison wrote:
> G'day
>
> I getting strange results from Sabletron which I don't
yet understand.
> I'm happy to work around them if the results are
correct.
>
> I have a xml with 4 attributes in the root node and
three children
>
> status = SDOM_getChildNodeCount(situation, node,
&childCount) ;
> // returns 7 i'm expecting 3
>
> status = SDOM_getAttributeNodeCount(situation,
node, &attributeCount)
> // returns 6, I'm expecting 4
>
> Any ideas on how to 3 for childCount and 4 for
attribute count?
The extra nodes are likely whitespace text nodes. Check type
of nodes and filter
them if necessary. I'm not sure what could be the extra
attributes, maybe NS
declarations. Can you list their names to see what is going
on?
We would need to see a relevant part of your code and the
input XML to be able
to tell you more.
Petr
--
Petr Cimprich
Ginger Alliance
www.gingerall.com
------------------------------------------------------------
------------
Archives and info: http
://www.gingerall.org/charlie/ga/xml/m_ml.xml
Mailing list maintained by Ginger Alliance
|