robrighter/node-xml — Issue #22: How to detect empty element?
Author: kruncher
Created: 2011-11-16 01:27:20+00:00
State: open

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 `` or `
`. How is this achieved with this parser?

Many thanks!