Refactoring xml.ts

- Adds toXMLName
- toString implementations
- asGetProperty / asSetProperty
- _children usage