java - How can i add a list based on an object -
for following xml,i want add 'airfareruletaggedtextlist' list based on 'airfarecomponent' can display/process based on airfarecomponent. want add 'airfareruletaggedtextlist' value key 'airfarecomponent'.is best way?.the object 'airfareruleresponse' can multiple. can explain how can done ?
<ns2:getfareruletextresponse> <ns2:airfareruleresponselist> <ns2:airfareruleresponse> <ns2:airfareruletaggedtextlist> <ns2:airfareruletaggedtext> <ns2:airfareruletagstring>rule application , other conditions</ns2:airfareruletagstring> <ns2:airfarerulecategorycode>50</ns2:airfarerulecategorycode> <ns2:airfarerulestring>rule application , other conditions note - following text informational , not validated autopricing. -------------------------------------- auto pricing required - forced/manual pricing subject debit memo. </ns2:airfarerulestring> </ns2:airfareruletaggedtext> <ns2:airfareruletaggedtext> <ns2:airfareruletagstring>eligibility</ns2:airfareruletagstring> <ns2:airfarerulecategorycode>01</ns2:airfarerulecategorycode> <ns2:airfarerulestring>eligibility no eligibility requirements apply.</ns2:airfarerulestring> </ns2:airfareruletaggedtext> </ns2:airfareruletaggedtextlist> <ns2:airfarecomponent> <ns2:aircarriercode>ua</ns2:aircarriercode> <ns2:airfarebasiscode>wra0agbr</ns2:airfarebasiscode> <ns2:departureairportcode>sfo</ns2:departureairportcode> <ns2:arrivalairportcode>las</ns2:arrivalairportcode> </ns2:airfarecomponent> </ns2:airfareruleresponse> <ns2:airfareruleresponse> <ns2:airfareruletaggedtextlist> <ns2:airfareruletaggedtext> <ns2:airfareruletagstring>rule application , other conditions</ns2:airfareruletagstring> <ns2:airfarerulecategorycode>50</ns2:airfarerulecategorycode> <ns2:airfarerulestring>rule application , other conditions note - following text informational , not validated autopricing. other conditions unused coupons have no residual value -------------------------------------- auto pricing required - forced/manual pricing subject debit memo.</ns2:airfarerulestring> </ns2:airfareruletaggedtext> <ns2:airfareruletaggedtext> <ns2:airfareruletagstring>negotiated fares</ns2:airfareruletagstring> <ns2:airfarerulecategorycode>35</ns2:airfarerulecategorycode> <ns2:airfarerulestring>negotiated fares not applicable.</ns2:airfarerulestring> </ns2:airfareruletaggedtext> <ns2:airfareruletaggedtext> <ns2:airfareruletagstring>international construction</ns2:airfareruletagstring> <ns2:airfarerulecategorycode>ic</ns2:airfarerulecategorycode> <ns2:airfarerulestring>international construction not constructed fare</ns2:airfarerulestring> </ns2:airfareruletaggedtext> </ns2:airfareruletaggedtextlist> <ns2:airfarecomponent> <ns2:aircarriercode>ua</ns2:aircarriercode> <ns2:airfarebasiscode>gaa4akbn</ns2:airfarebasiscode> <ns2:departureairportcode>sfo</ns2:departureairportcode> <ns2:arrivalairportcode>las</ns2:arrivalairportcode> </ns2:airfarecomponent> </ns2:airfareruleresponse> </ns2:airfareruleresponselist> </ns2:getfareruletextresponse>
Comments
Post a Comment