I expect this in my xml
<van id="1234">
<stock level...../>
<stock level..../>
</van>
I do xmlReader.Read(), if the NodeType == XmlNodeType.Element then I call
ImportVanStockLevels(xmlReader);
ImportVanStockLevels will do this
1) read each attribute
2) call xmlReader.Read() until </van> is found
But I have a problem, sometimes the van has no stock, so I receive this
<van id="1234"/>
IsEmptyElement returns false, and HasValue returns true.
How can I detect this situation?
Thanks
Pete