Reading is done by a non-validating pull-parser.
Writing only ensures a valid structure of the xml document, but does not check the name format (of elements, ...) itself.
Entities predefined in XML will be substituted with its references and vice versa.