[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complex XML Value



I don't understand what you mean by a "complex value", the sample you 
provided is a very simple one, and I don't consider it to be complex at 
all.

I don't remember what CHARDATA1 does, though it sounds like it's probably 
something I wrote.  I don't have time to look it over now, but I'll try to 
do so tomorrow or something like that.

-- 
Scott Klement  http://www.scottklement.com


On Wed, 16 Aug 2006, Michael Ryan wrote:

> Anyone know if eXpat can parse a complex value? I'm using the eXpat parser
> that's included in HTTPAPI, and I have this problem.
> I can handle a simple value, like:
>
> <currency>USD</currency>.
>
> When I use the CHARDATA1 sample, it returns:
>
> currency
> Char: USD
>
> Which is what I expect. But when it encounters this:
>
> <partyIdentifier partyIdentifierCode="account"
> partyIdentifierQualifierCode="receiverAssigned"/>
>
> it returns:
>
> partyIdentifier partyIdentifierCode="account"
> partyIdentifierQualifierCode="receiverAssigned"
>
> And what I would like is:
>
> partyIdentifier
> partyIdentifierCode
> Char: account
> partyIdentifierQualifierCode
> Char: receiverAssigned
>
> Obviously I don't care about the Char:, I just want to be able to identify
> the subfields (?) of the XML value. How can I do that with eXpat, or do I
> parse that on my own?
>
> Thanks!
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------