fixed bug in hadling namespace prefixes in tags,
keeping elements in the same order as found in the document
fixed bug in sub elemnts tracking
comment change