- """Passing parse_dublincore=False to transform omits DublinCore parsing."""
- text.transform(
- open(get_fixture('text', 'asnyk_miedzy_nami_nodc.xml')),
- open(get_fixture('text', 'asnyk_miedzy_nami.txt'), 'w'),
- parse_dublincore=False,
- )
+ """Passing parse_dublincore=False to the constructor omits DublinCore parsing."""
+ WLDocument.from_file(
+ get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
+ parse_dublincore=False,
+ ).as_text()