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

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

There is a newer version: 0.5.0-M1
Show newest version
package scales.xml.trax

import scales.xml._

import javax.xml.transform.stream._
import javax.xml.transform.Source
import javax.xml.stream._

import scales.utils._
import ScalesXml._

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 - 2024 Weber Informatics LLC | Privacy Policy