Java: 1.6
Woodstox: 4.1.4
I'm currently trying to make Woodstox xml parser my friend. But beginning is really hard :) I have a small? problem when parsing xml like this one:
<teams>
<team id="team1">Mom & Dad</team>
<team id="team2">Son & Daughter</team>
</teams>
It is simple, but unfortunately I'm getting this exception:
Exception in thread "main" [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ' ' (code 32) (missing name?)
at [row,col {unknown-source}]: [2,24]
This happens because of character &.
Is it possible to read xml successfully without getting this exception?
<
>
'
"
. – Impressment