V
vega
How do I detect empty tags if I have the DOM document?
For example: <br /> and <br></br>
I tried org.w3c.dom.Node.getFirstChild(), it returns null for both <br
/> and <br></br>
I also tried getNodeValue(), they both returns null also.
I know <br /> and <br></br> are the same from the xml spec. Is there
any way to tell the different syntax using DOM parser?
Thanks,
-John
For example: <br /> and <br></br>
I tried org.w3c.dom.Node.getFirstChild(), it returns null for both <br
/> and <br></br>
I also tried getNodeValue(), they both returns null also.
I know <br /> and <br></br> are the same from the xml spec. Is there
any way to tell the different syntax using DOM parser?
Thanks,
-John