Updated our DOM Parser, added a better XML example.

Things to look at: attribute( reference), mdStateMachine, methods