All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scales.xml.trax.TraxSourceConversions.scala Maven / Gradle / Ivy

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