Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Few Questions about org.w3c.dom.Element

From: "Joseph J. Kesselman" <keshlam-nospam@-------.--->
To: NULL
Date: 4/10/2008 5:43:00 PM

> 1) How do I do know is it an empty tag or not?
> <tag ..... />

XML doesn't distinguish between <tag></tag> and <tag/>. Nor does the 
DOM. If you want to know whether it has content, check whether it has 
children.

> 2) How do I know when will be a close tag?

Don't think in terms of tags. Think in terms of elements. An element is 
made up of an open tag and its close tag, or a self-closing tag -- as I 
just said, they're the same thing. Everything inside it is its children. 
There is no separate representation of the close tag.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent