Reading is done non-validating using a pull-based reader.
Writing only ensures a valid structure of the XML document, but does not check name formats of tags and similar.
Entities predefined in XML will be substituted with its references and vice versa.