Xml parsing problem with html special characters
I'm having trouble parsing xhtml pages as xml if that page contains special characters like ® or The html im parsing is created by lift.
The problem is generated whenever referencing a variable.xml and the result is:
[Fatal Error] :54:46: The entity "reg" was referenced, but not declared.
And the printout of the xml.
Code example:
val result: String =
get("/some_page/here/" + variable) match {
case h: HttpResponse =>
val input = (h.xml \\ "input")
println("I got something" + input)
""
case other =>
println("Got something weird - got "+other)
""
}
result
The problem is generated whenever referencing a variable.xml and the result is:
[Fatal Error] :54:46: The entity "reg" was referenced, but not declared.
And the printout of the xml.
Code example:
val result: String =
get("/some_page/here/" + variable) match {
case h: HttpResponse =>
val input = (h.xml \\ "input")
println("I got something" + input)
""
case other =>
println("Got something weird - got "+other)
""
}
result
Leave a comment
on 2010-02-06 11:47 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/45/find