&whatever; constructs are entities (or < like things which are called
character references), they've got nothing to do with encoding. & and 4
four other
predefined entities SHOULD have been decoded/expanded when your document
has been parsed i.e. you should get your "SAX & Markup toys" properly.
Check you parser's settings if there's something that preserves those
predefined entities.
(my Java xml parsing is a bit rusty at the moment, maybe somebody else could
help)
encoding: to put it short it's format in which you save/serialize your
document. When you load it you must have proper <? xml version="1.0"
encoding="whatever"?> set unless you're using (saved as) UTF-8 which is
default for parser if no encoding is specified.
http://www.ibiblio.org/xml/books/xmljava/ could give you answer on this too,
I recommend reading it, very useful book. reading it might be a bit on the S
& M side for xml beginner in cos it's so detailed, but it's very good
book.
with respect,
Toni Uusitalo
Bob Sparks said:
Thanks
I did this
docBuilder.parse( new InputSource( new StringReader(
userClassTree.toString() ) ) );