added namespace check
fixed loading of documents with unknown elements