B
Bryan Dickerson
Warning: XML Newbie
If I am programming for an XML document that could have up to 4 address
lines in a particular segment, how do I test for the existence of, say,
AddrLine2 (and by extension Line 3 & Line 4)? Currently, I'm fairly assured
that I don't have to test for the existence of AddrLine1, but this is the
xPath to it:
xNode = xmlPO.SelectSingleNode( _
"//SOAP-ENV:Body/PurchaseOrder/OrderHeader/Partner[@Relationship='ShipTo']/Address/AddrLine1",
xNSM)
TIA!
If I am programming for an XML document that could have up to 4 address
lines in a particular segment, how do I test for the existence of, say,
AddrLine2 (and by extension Line 3 & Line 4)? Currently, I'm fairly assured
that I don't have to test for the existence of AddrLine1, but this is the
xPath to it:
xNode = xmlPO.SelectSingleNode( _
"//SOAP-ENV:Body/PurchaseOrder/OrderHeader/Partner[@Relationship='ShipTo']/Address/AddrLine1",
xNSM)
TIA!