Will every DOMElement always have at least one child, and in the case
of the DOMElement having one and only one child, will that child
always be a DOMText?

Basically, I need to know if elem->getChildNodes()->item(0) is
_always_ safe operation, and I furthermore know if I can rely on
item(0) always being a DOMText provided that
getChildNodes()->getLength() == 1.

Still learning the basics,
-Patrick

Reply via email to