Use more standard prototypical inheritance for toXml methods
Merge pull request #3 from reywood/master

Use more standard prototypical inheritance for toXml methods