validate empty value in XML while parsing XML in flow service

I have a scenario where I get an XML, I am using queryXMLNode and mapping the xml node value to IS document. When I get a null value in one node, I want to get the value from other node which will be always has value. Please advise how to do this.