Skip to main content

Parsing TEI XML

  • Chapter
  • First Online:
Book cover Text Analysis with R

Abstract

This chapter introduces readers to parsing XML in R with an emphasis on TEI encoded XML.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 89.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Notice the different path here. The XML version of Moby Dick is located in a different sub-directory of the main “TAWR2.”

  2. 2.

    <TEI xmlns = "http://www.tei-c.org/ns/1.0">.

  3. 3.

    Notice that the xpath argument now includes the tei prefix.

  4. 4.

    A node inside of another node is often referred to as a “child” node.

  5. 5.

    As long as we are on this subject, the editors also decided that the “Etymology” and “Extracts” that come before the famous “Call me Ishmael” should not be treated as chapters either. What those sections are, exactly, is something for scholars to debate.

References

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

L. Jockers, M., Thalken, R. (2020). Parsing TEI XML. In: Text Analysis with R. Quantitative Methods in the Humanities and Social Sciences. Springer, Cham. https://doi.org/10.1007/978-3-030-39643-5_12

Download citation

Publish with us

Policies and ethics