An application I'm helping develop transmits XML to an ERP and receives an
XML statement showing the result of the transmittal to the ERP. I've pasted
a copy of one of the response XML statements. I have no trouble retrieving
the statement "Environment 'DEV' could not be initialized for user; check
user, pwd and environment attribute values", which we're storing in our SQL
Server. However, I also need to retrieve the value for the code attribute,
which is 12 in this case, to pass back up to the user; retrieving that value
is the sticking point. How do I go about accomplishing that?
<?xml version='1.0'?>
<jdeResponse type='callmethod' user='JWRIGHT' pwd='JWRIGHT'
environment='DEV' session=''>
<returnCode code='12'>Environment 'DEV' could not be initialized for user,
check user, pwd and environment attribute values</returnCode>
</jdeResponse>