
scales.xml.trax.TraxSourceConversions.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scales-xml_2.11 Show documentation
Show all versions of scales-xml_2.11 Show documentation
An alternate Scala Xml processing library
The newest version!
package scales.xml.trax
import scales.xml._
import scales.utils.top
import scales.utils.collection.path.AbstractPathIterator
class TreeIterable( tree : XmlTree ) extends AbstractPathIterator[XmlItem, Elem, XCC, PullType] {
lazy val initialPath = top(tree)
def event : PullType = path.node.focus.fold(x=>x,y=>y.section)
def end = {
val el = path.tree.section
EndElem(el.name, el.namespaces) : PullType
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy