[jdom-interest] XML comments
Elliotte Rusty Harold
elharo at metalab.unc.edu
Fri Jan 4 13:47:28 PST 2002
At 2:35 PM -0700 1/4/02, Justin Wall wrote:
> Are comments in XML documents supposed to be ignored by
>parsers? Which ones have methods (or events) to get the comment
>blocks? We are thinking of adding some of our own metadata tags
>within the comments so it doesn't break the application server. I
>also would like to parse the file with my own program and get the
>metadata.
>
That's what processing instructions are for. Don't use comments for
this in XML.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible, 2nd Edition (Hungry Minds, 2001) |
| http://www.ibiblio.org/xml/books/bible2/ |
| http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list