Hi,
Is there a way to identify whether an empty tag in the xml is in '<tag/>' or '<tag></tag>' format? The startElement() and endElement() of the XMLParser only identifies that the tags are found but no details about whether the 1st or 2nd format of end tags were found.
It can be done, but it almost certainly shouldn't be done; so I'm not going to tell you how without a good use-case. I prefer not to teach people how to pull triggers until I'm convinced their gun isn't pointed at their foot, or, worse yet, my foot. :-)
The one use case I'd be willing to make an exception for is an editor or similar program that needs to round trip as much of the original formatting as possible. But certainly nothing that's concerned only with the logical structure of an XML document should care whether or not an empty element tag is used.
--
+-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer | +-----------------------+------------------------+-------------------+ | The XML Bible (IDG Books, 1999) | | http://metalab.unc.edu/xml/books/bible/ | | http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://metalab.unc.edu/javafaq/ | | Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/ | +----------------------------------+---------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
