Folks,

I want to know if the following is a reasonable assumption :

Given an element specified in a schema as

<xs:element name="x" type="xs:long">

And decoding an XML document into a DOM using that schema as the
validation rule.

If I find the Element Node in the DOM tree with name x, can I safely
assume it only has one Child Node which is a text node containing X's
value.

Obviously, assuming such would make my code simpler, but I do not want
to insert bugs by making wrong assumptions.

Thanks

Dale Pennington

Reply via email to