I'm having a problem setting the testing for the existance of a nodes
outerxml property. Below I try to test for the existance before I access
the property, but I receive a null exception error. How do i test for the
existance of this property before I use it?
Thanks,
Lyndon
XmlNode rawMicroAmount =
doc.SelectSingleNode("/iso8583msg/field[24]/subfield[8]/element[7]/key");
XmlNode rawMicroAmountVal =
doc.SelectSingleNode("/iso8583msg/field[24]/subfield[8]/element[7]/value/tex
t()");
writer.WriteStartElement(rawMicroAmount.InnerXml);
if(null!=rawMicroAmountVal.OuterXml)
{
writer.WriteString(rawMicroAmountVal.OuterXml);
}
writer.WriteEndElement();