Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Few Questions about org.w3c.dom.Element [Thread Next] Re: Few Questions about org.w3c.dom.ElementTo: 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. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
