[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Complex XML Value
Hi Scott -
Thanks for the reply. I meant complex in the sense of multiple values
for one tag, not in the sense of difficulty.I'm probably using the
term incorrectly. Yeah, CHARDATA1 is one of the sample programs in the
LIBEXPAT library. Thanks for taking the time to look into this!
- Michael
On 8/16/06, Scott Klement <[1]sk@xxxxxxxxxxxxxxxx> wrote:
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 [2]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:
[3]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
References
1. mailto:sk@xxxxxxxxxxxxxxxx
2. http://www.scottklement.com/
3. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------