How do you continue parsing even when expected elements are missing from xml file
Hi,
I have an XML file that can have a varying structure. For example in the chunk below the <subtrade> element has a subelement called <creditCurveFull>. However, <creditCurveFull> may be missing from the next <subtrade> element and reappear in the next <subtrade> element and so on.
Currently, my code just bombs out if it does not see the element that it is expecting to parse i.e. <creditCurveFull>. How do I deal with this so that my code continues to parse the rest of the document even if the elements that it is expecting to see are missing?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.