[jdom-interest] CDATA data (followup with more info)
Elliotte Rusty Harold
elharo at metalab.unc.edu
Thu Nov 7 06:41:00 PST 2002
>Why doesn't JDOM use the <?xml encoding="blah"?> preprocessor
>instruction to determine
>what to output as? Isn't that tag required anyways?
Wrong on three counts: It's not required, it's not a tag, and it's
not a processing instruction. JDOM generates the appropriate *XML
declaration* to match the encoding you requested.
JDOM hews pretty closely to the XML spec. Most of your confusion
seems to stem from misunderstandings about XML rather than JDOM.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list