Here is a little challenger. I am trying to parse a
response which comes back from the server. Te server side I am working with was
created back in the days and XML response is absolutely invalid. But
nobody on a server side is going to change it, so I am stuck with it. Here
is the doc:
<pp.response>
<pp.authresponse merchant="1001" ordernumber="10000" transactionid="CC_FU29DAF5F6BD" authcode="OK0133" avs="YYY" cvv2result="X" authstatus="AUTH"/> </pp.response> I was able to successfully pass it to a
parser(validation disabled) as a DOM_NODE. I need to extract multiple
attrubute values: ordernumber, transactionid, authcode etc and pass them to
regular strings. I've done it before with the particular document in Java,
Perl, C# etc. But I came to a complete stumbling block with
Xerces C++. I have tried multiple API methods, but none seem to
work. I even cast the DOM_Node to the DOM_Element(what I beleive is
illegal) and tried to extract values by name. No luck. Can somebody guide
me in a right direction?
Respectfully,
Anton Spektorov
email: [EMAIL PROTECTED]
|
- Re: Multiple Attributes Challenge Anton Spektorov
- Re: Multiple Attributes Challenge Brad Settlemyer