Basic XML Processing In Scala XML is a form of semi-structured data that organizes content into a tree structure. Scala allows XML to be written as literals and represents XML data as labeled trees. Important classes for processing XML include Node, Text, and NodeSeq. XML can be taken apart in Scala by extracting text using the text method, extracting sub-elements using \ or \\, and extracting attributes using @.