Changed pointer types to base class

Changed pointer type from `Internal::XmlStateRoot` to `Internal::XmlState`.

@scunz Can you please verify, this is ok?