Its been a long time since I did it, but I think I put in code so that the underlying scanner reports the difference. But the problem is that it does not propogate out through any standard APIs. If you wanted to keep this info, you'd have to use the scanner directly and have your own data structures to put all the data in.
-------------------------- 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: "Jason E. Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 7:48 AM Subject: Re: Telling two empty tags apart > "Joe Marini" <[EMAIL PROTECTED]> writes: > > > 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? > > My understanding of the spec is that the two types of tags are > interchangeable and it is up to each parser to implement them as it > sees fit. So you can't do this in a reliable manner. I went digging > through the spec but couldn't find the section that says this, so I > could be wrong. > > jas. > > --------------------------------------------------------------------- > 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]
