
as.xml.elem.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dispatch-core_2.11 Show documentation
Show all versions of dispatch-core_2.11 Show documentation
Core Dispatch module wrapping async-http-client
package dispatch.as.xml
import dispatch._
import scala.xml._
object Elem extends (Res => scala.xml.Elem) {
def apply(res: Res) =
XML.withSAXParser(factory.newSAXParser).loadString(res.getResponseBody)
private lazy val factory = {
val spf = javax.xml.parsers.SAXParserFactory.newInstance()
spf.setNamespaceAware(false)
spf
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy