Skip to main content

sbx-zxx-import-sparv-xml

Analysis citation Information

Språkbanken (2025). sbx-zxx-import-sparv-xml (updated: 2025-05-15). [Analysis]. Enriched and distributed by Språkbanken.
BibTeX
Import of corpus data from XML

This utility imports XML documents into Sparv by parsing the XML tree, extracting textual content, handling elements and attributes, separating body text from header metadata, optionally removing namespaces, and creating annotations for both corpus text and structured metadata. The import process can be configured to rename or skip specific elements and attributes, and to include or exclude header metadata.

Example

This importer is used with Sparv. Check out Sparv's quick start guide to get started!

To use this importer, run Sparv with the argument 'xml_import:parse':

sparv run xml_import:parse

For more info on how to use Sparv, check out the Sparv documentation.

Type

  • Utility

Task

  • import

Licence

MIT

Created

2010-12-17

Updated

2025-05-15

Contact

sb-info@svenska.gu.se