I'm parsing XMl with Microsoft.XMLDOM. My problem is sometimes a node is empty or missing (when exporting XML from Excel) and I get an error.
So, how do I test for teh existance of a named node and whether it is empty or not?
Example below is missing para2 node (because it was empty). However if the client edited the XML in notepad, a node might exist thus <subhead></subhead>
<news>
<headline>AlphaWireless to exhibit at 4GWorld in Chicago</headline>
<subhead> Oct 19-21, 2010</subhead>
<para1>See us on stand 106. See
http://4gworld.com for details.</para1>
<subdate>10/08/2010</subdate>
<expiredate>01/11/2010</expiredate>
<ID>2</ID>
</news>