minor fix, added null check after parseNodeList call before calling node...

...s.getLength()

Was getting an NPE if not passing in values for these objects in the XML.  Not sure if this is *how* you want to do it, but it's an easy fix.