Is there any possibility to check if all nodes in document are closed? I mean... if node <node> has child nodes then somwhere will be </node> or if node is empty it will only be a <node/>. Any hint will be usefull