node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

How to detect empty element?

Open kruncher opened this issue 13 years ago • 0 comments

How can I determine whether I have encountered an empty element?

I am using the onStartElementNS callback but there isn't an attribute like "isEmptyElement".

I need to be able to determine whether an element is written like <b></b> or <br />. How is this achieved with this parser?

Many thanks!

kruncher avatar Nov 16 '11 01:11 kruncher