XmlFileHeader (final MyXMLReader r) { final RootTagInfoBuilder builder = new RootTagInfoBuilder(); parse(r, builder); return new XmlFileHeader(builder.getRootTagName(), builder.getNamespace(), r.publicId, r.systemId); }