They are completely identical from XML's point of view, therefore they are from the parser's point of view. If what you are looking for is to print them back out the same as how they were seen originally, you couldn't do that. Given that there is no difference, you should just give your users a choice of how they want to have them show up when printed back out, and put them all back out that way.
-------------------------- Dean Roddey The Charmed Quark Controller Charmed Quark Software [EMAIL PROTECTED] http://www.charmedquark.com "If it don't have a control port, don't buy it!" ----- Original Message ----- From: "Joe Marini" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 5:07 PM Subject: Telling two empty tags apart > Hello all, > > I'm hoping someone can help me with a basic question. > > Suppose I have two tags that look like this: > > <tag></tag> > <tag/> > > Now, clearly, each is an empty tag. My question: is there any way within > Xerces to tell the difference between the two types of empty tags? For > example, if I wanted to modify the DOMPrint example to output these two tags > exactly as they appear in the source file, how would I do it? > > Thanks, > > Joe > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
