Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Xml parsing problem with html special characters #45

DFectuoso opened this Issue Aug 11, 2009 · 4 comments


None yet
3 participants

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)

Just for reference(its parsed here) im refering to & r e g ; and & n b s p ;


dpp commented Aug 13, 2009

Use the Lift parser rather than XML parser closed by 8fd5597799c9374556c977326852e68e61b8857d

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment