FaultyJuggler
FaultyJuggler

Reputation: 542

SAX parser not handling HTML fragments well

I have some HTML information stored in various places as part of the characters value in an XML file. I'm having a problem occur where

2 <= BFE < 3

is returned as

2 
<
= BFE 
<
 3

I need to A) not convert the HTML code and B) process it all as one string.

Upvotes: 0

Views: 130

Answers (1)

jtahlborn
jtahlborn

Reputation: 53694

A) you can't, that is how xml parsing works

B) this is SAX parsing 101: you need to accumulate multiple characters() calls between the relevant start and end element calls.

Upvotes: 2

Related Questions