Re: Processing XML
Re: Processing XML
- Subject: Re: Processing XML
- From: Drew Thoeni <email@hidden>
- Date: Tue, 13 Jan 2004 23:29:33 -0500
I think you're looking for WOXMLDecoder
http://developer.apple.com/documentation/WebObjects/Reference/API5.2/
com/webobjects/appserver/xml/WOXMLDecoder.html
On Jan 13, 2004, at 11:12 PM, Greg Hulands wrote:
HI,
I have never had a need to parse xml before so I am not quite sure how
to do it. I am implementing a credit card payment component for my
system and the credit card gateway sends and receives xml documents. I
can easily generate the xml in a component to send to the gateway, by
I am not sure how to parse the returned xml document. Below is an
example:
<ewayResponse>
<ewayTrxnError>No Error</ewayTrxnError>
<ewayTrxnStatus>False</ewayTrxnStatus>
<ewayTrxnNumber>10081</ewayTrxnNumber>
<ewayTrxnOption1>Error</ewayTrxnOption1>
<ewayTrxnOption2>Error</ewayTrxnOption2>
<ewayTrxnOption3>Error</ewayTrxnOption3>
<ewayAuthCode>123456</ewayAuthCode>
<ewayReturnAmount>200</ewayReturnAmount>
<ewayTrxnReference>Error</ewayTrxnReference>
</ewayResponse>
What I am essentially after would be doing something like this
String status = parser.stringForAttribute("ewayTrxnStatus");
Is there some simple xml parser that would cater for such a simple
document?
Any help is greatly appreciated.
Regards,
Greg
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.