[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Getting the Attribute in an XML doc Element
1. To retrieve attribute you have to define a DS like this:
D AddressDetails DS qualified
D Accuracy 10
2. Define Address used below the way you need it to retrieve the value.
You have to perform 2 XML-INTO, one to retrieve the value and one for
attribute.
Options = 'path=.../AddressDetails'
+ 'case=any doc=file '
+ 'allowextra=yes';
1. retrieve address
XML-INTO(e) Address
%XML(XMLInput : Options);
2. retrieve attribute
XML-INTO(e) AddressDetails
%XML(XMLInput : Options);
Then use the field as AddressDetails.Accuracy.
___________________________________________________
Adriana Stoicescu, senior programmer analyst
UTi | 100 Oceangate, Suite 1500 | Long Beach, CA 90802
astoicescu@xxxxxxxxxx| O 562.552.9505 |
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Johnson
Sent: Tuesday, November 20, 2007 3:00 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Getting the Attribute in an XML doc Element
Using HTTPAPI v1.21
Given the following XML section, how do I retrieve the 8 using Expat? I
glanced thru all the examples and just don't see a way to do it.
<AddressDetails Accuracy="8">
......
</AddressDetails>
Thanks,
Scott
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-------------------------------------------------------------------------------------
Email Confidentiality Notice and Disclaimer
This email message contains information which may be confidential and
or legally privileged. Unless you are the intended recipient (or have
been authorised to receive on behalf of the intended recipient), you
may not use, copy or disclose to anyone the message or any information
contained in the message or from any attachments that were sent with
this email. If you have received this email message in error, please
advise the sender by email, and delete the message.
-------------------------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------