A basic Xml validating parser for data structures homework