You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Brad Settlemyer <bw...@cox.rr.com> on 2002/03/26 07:22:44 UTC
Re: Multiple Attributes Challenge
I only know SAX2, but in sax2 you would simply use the attributes object, and
look the values up by qname or integer index.
On Tuesday 26 March 2002 02:42 am, you wrote:
> 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: spektr44@hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org