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

Re: EndProc not triggered for Elements



'streetname' is the first element that triggers endProc, because it is the first element that is closed. All other elements are still open when the parser comes to streetName.

Thomas.

Gesendet mit AquaMail für Android
http://www.aqua-mail.com


Am 21. Juli 2015 15:06:22 schrieb George Jeffcock <George.Jeffcock@xxxxxxxxx>:

Firstly thanks for the open source initiative Scott. I am hopeful this initiative will help CA Plex IBMi users<http://www.stellatools.com/> as much as it has helped native rpg IBMi users.

Secondly all works great and the 'modern' way of coding RPG really suits CA Plex coding and it has proved a nice fit.

One question thou:

Consider the following XML response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<naturalCustomerInformation>
                      <addresses>
                                            <address type="POPULATION">
                                                                 <streetName>My Street</streetName>
                                            </address>
                      </addresses>
                      <phoneNumbers>
                                            <phoneNumber type="FIXED_LINE">003345415896</phoneNumber>
                      </phoneNumbers>
</naturalCustomerInformation>

Why is my 'EndProc' call-back procedure not triggered for the first 3 elements?

In the above example 'streetName' element is the first to trigger the EndProc procedure which is not what I expected if I want to read 'address' type attribute.

In the above example 'naturalCustomerInformation' element is the first to trigger the StartProc procedure which is what I expected.

I care because I'm trying to read the attribute 'type' belonging to element 'address'.

I have no problem reading the attribute 'type' belonging to element 'phoneNumber' within the 'EndProc'


Misunderstanding or bug or config or developer stupidity..I am trying to narrow it down.

Currently using the current version of HTTPAPI downloaded and installed last month

Many thanks
George Jeffcock
www.stellatools.com<http://www.stellatools.com/>






[cid:07d1c6.png@df49d3f1.4ca03e53]
George Jeffcock
Utvecklare Kontosystemet
IT | Utveckling




Resurs Bank AB
Ekslingan 9
Box 22209, SE-250 24 Helsingborg




Växel:  +46 42 38 20 00
E-post: George.Jeffcock@xxxxxxxxx<mailto:George.Jeffcock@xxxxxxxxx>
Webb:   www.resursbank.se<http://www.resursbank.se>






----------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
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
-----------------------------------------------------------------------