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

Extracting Element Attributes.



   Note: This e-mail is subject to the disclaimer contained at the bottom
   of this message.
     _________________________________________________________________

   I am trying to obtain an attribute value from a response message. I've
   been using the exchange rate example and have understood what's
   happening with the call-back.



   I thought the attrs parameter in the call-back interface would provide
   access to the current element attributes, but when I look  at it with
   debug it's all null pointers. What should it contain?



   I found some other responses regarding %paddr(GetInnerDoc) but am a
   little confused because it uses http_parse_xml_stmf. I thought it
   would be easier to use a pointer to the string to search for the
   desired attribute. After all the ds has a pointer to buf and a length?



   I presume that that technique was when a program needs to obtain sub
   elements in a particular branch?



   I found http_parse_xml_string() in the httpapi_h file and that looks
   like it uses the pointer, but now I don't know how to find the
   attribute!



   Should I be doing a scan of that string looking for the specific
   attribute name and then obtaining the value?



   Thanks again.


     _________________________________________________________________

   The information transmitted in this message and its attachments (if
   any) is intended only for the person or entity to which it is
   addressed.

   The message may contain confidential and/or privileged material. Any
   review, retransmission, dissemination or other use of, or taking of
   any action in reliance upon this information, by persons or entities
   other than the intended recipient is prohibited.

   If you have received this in error, please contact the sender and
   delete this e-mail and associated material from any computer.

   The intended recipient of this e-mail may only use, reproduce,
   disclose or distribute the information contained in this e-mail and
   any attached files, with the permission of the sender.

   This message has been scanned for viruses.
     _________________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------