added url to the wsmNode, refactored parseFromDom to parseFromDoc as we pass in a document + other refactoring