Está en la página 1de 4
2307015 cxacle- extract elements from xml in PUSQI- Stack Overtow ‘Stack Overtow i a community of 4.7 millon programmer, just ke you, helping each alher. Jin them, only takes a minute: inup ]™ extract elements from xml in PL/SQ| S Add) repos to your \S)stackoverflowcareers profile, Below isthe response of SOAP service. How do extact values in PU'SQL..| have listed some ofthe ‘ways ihave tried “ShipnnetrackingResponse seins "ntps//s-oranex.oat/SnipsngAP//"> ‘tranenetion nn teshesp/ um w3orgei/am Sehena neta"? heferenes Liniie"tne"/> fteanactions ‘lot flestlons ns: te"htps/atn.or/2063/2Sehena- instance’ [> ‘harEerorssfalsecHastrr smanerisnetpe we ‘keyiaiueofetingseray Tack “hay ners 4728079651¢/ybiLINeber> “lpdotecodessibeeUoastetode “ibiaceaceeriptionssupsorting Docatet Retard to Shippec/Updntabecription> ‘Ghaaceantetinsa013-67-1519:29:08/UpesteosteTiae) “ipdatelocationorbat, ndiac/Upasteestion> hsp: /fschens.sntsoup.og/soup/enelope!"> “Chay anbers473878652¢faybilinunbery Riptcecodessnese/inastetodes “Ghasceaceeriptionssn6 Sent. ta Cons.goee/Upestebesersption “ipsotester ines 91-87-1970: 30"0n¢/UpeatebateTin> ‘ipdatelocationmobal, ndia/Upiateoeation> ‘rrobtencode/> Fienccngaesult> ‘comers “hap Ibe” 473870653 “ipdetedeseriptionsns Sent to Consigrec/tpentebesription> ‘Wpiaceantetinesao13-07-1110:25:08/Upeatenstetiae) “ibiaceLocationminta,indiae/ipdstelaeations “haya abe” €73870653¢Paaybhlanunber> “lpdotecodessibed/Uoastetode. ‘Gbinseoceceiptians0iy fr Delivery /UpésteDescrigtion> “Uhaaceanteins2013-07-1710:59:08/UpeateostTiae) “Gpaavelecationcoa Sranch Go, ne efupanet ection ipustackovertow. com questons/179¢8807lodtract-olamerts- roma psa us 2307015 cxacle- extract elements from xml in PUSQI- Stack Overtow tracingnesutt> “Chay hnber94724079651¢/MyblLINeber> paatenercrptions ob rtenkangtesttt> spans ‘sontstinginybiLlganine:aehtep://schnas.ntcrasott,con/2883/28/Sertaization/Acrays” sminesishetpe/ asad orp /304/99.Schna-snsrance"/>e/SnipeentTractingespontedeb069> How do extract values, am Iteraly stuck have tied all ways. some ofthe mothods aco as follows: Jpesp_ank x Type craton (1cob_response); SELEer Erancr(hcresp onl, //3hipeentraecingesponge/ Trai ninety //ehatanen oe hippimAPTMA/**) BO Loves and finaly fr extracting values: But of no uso! PLEASE HELPIL SELECT ETAMCTVALUEQ respi, “ip eackingtesits/akeyVaanoFst ger ayo ackinghesutt isle Value/Treckingtesut(1] iaanssoh tp shanas lens con 2003/18/Seieikaation/eays""}N Dins_OUTPUT.put_Line { "Result> 1_response_clobExtracte’ || 1_response result); See > how to use the XmiTable? ska Jul 2013 ot 1245 2 Answers ‘You need to go downto a specie XML taglnode ROM Hnurabie $at//anigath --the path to the node you wan to start reasing Frow For every XML value you want to read you need to add column under coms and map tts thin your given XML node You can read mare in Oracle Docs EDIT used the XML you Isted in your OP and here is how you can doit (Idldnthave access to Your hito:/vs.aramex.nev/ShigpingAPLV1/schema so rstead | used a * to query any Sehemalnamespace). ‘The most important tng when deallg with XMLis the paths, the reason you werent geting any resus is because you had something Wrong somewhere in your path. Ittook me a while to learn this, 80 good luck 2) Peon ocTAaLE nnanespaces ( ttp//Svanasm soap. orn/Soap/envelopes” AS *5% ‘etp/Schenas.ncrseetCon/203/10/Seial2atie/herays” 8S 2"), “sas:erveope/s:80dy/*shignentrackinghespnse/*Teuclnghesutts/e:Kaytabucfsteirghrray assine mtype ¢ Cerenelope wninsisnetp/ nena esoap. ore sop/envelo ‘Slpnenraceinghesponse slash: //ws.2F ane. 4t/SAppMgAPT/> ipustackovertow. com questons/179¢8807lodtract-elomeris-rom-xmlin pq 2 2307015 cxacle- extract elements from xml in PUSQI- Stack Overtow “ferences 00 heferences> ‘eferened tenibetruet/> ‘Steferencet Lendl-tree"/> ‘oferencad {enloverue"/> iteanaetion> ‘STracarahenults snlra:onohtp://achena.sLcrosof,con/2002/0/Sertal.zatlon/Aerays™ suns shttp fa org/204/anLSehersnstance’> 6 neyanuetrdngarrayTrackingesultaF Ao “yb Thanne739579651haghs1 Nabors lysatecossaiatepastecode> “iplatedeseriptionsopoorting bocunent Returned to SMgpee “Updatedtet ine 20187-3571: 29"6be/Upetedateine> comers ” ‘eolencace/> itrtekanpsenuis rracingnesatt> “Chay noe «728 79651¢PaybSTIALber> iplatecodssibed/tpeatecode> “iplateseseriptionste sent to Consigree/UpdateDeseritton> “ipdateotel ine) 201367-3210:20:00¢/Upenetatein> “ipiasetocstionmintatinalac/ipdstelaeation> omerte/> itesekingaenste> “hay noe 473879653 “iheavelsestioncoa aranchcotsnecfupasteses ae omerte/> “orobeconeostse/robtencode> “rtencanatest20> Paynant Declined by ‘hoybilInansesp72aprseschaybiLanaber> patecodessnese/ipestecodes Gbéascocseeipsonsste sent ta consignoee/Upéatboseription- “peateastevinsa0i3-07-1110:36r08cUneatensteTine) “Wpoatetocationsinba,Inae/ipdatel eat ion “ieackingtesute> ‘Sybil Inansessa72407968/kaybiLinabor> patecodessonc/ipestcodes “Gpeaeesesceipionsoit fr delivery/Upaatebesciption> “ipssteoserines9oa-87-1i71839:0n«/UpetesateTine> “ipiatelocationssa branch-G0,rralocUpdtececation ‘orotate Fienkingaesule> “haybttnnaera738079653 Splatecoassioncfopestetote “aateescriptionnecara ereatescpcaeoescrigt o> “atesteinesninrcaston 9 oefipetedtetine) “Gpateocetonnehra blac Branch dacMUpantloceSen> comerts/> ‘rrloncoer> isnt Update Deseription:'IT J.response pessoge); — coser Jul 31183758 Bul unortnelly of 1 uel! = coder ol 3113 2755 I says no data foural — coder Jl 81 132 758 eran sc. 1 Jon us on Facebook ‘Thanks Jafar fr your hep. id the folowing and it worked fine! ts solved, (Select sity. createm(1_ci0b_resoonse) xn fron dal) ty smisle( sntrarespacee ( het / vs aranexnet/shippigse/va/* ety /fsehanasnkcrosortcon2003/28/SerSalseationAerays* as nee /sebenasxs039.org/s099/ereeope/” 36 °S catsuit “Hoty. arate nt) Shp S40) -s:tqveope/s:beey/Shgnenneckinghesprse/Iracegtesules/aayialucofstingherayOfTratkingtesul tal ingest) Updatepeseription varenara(221) puth “Updtebesenition”, Updatebaterine varcnar2(328) path “Updatebatel ine De ovtput.petatne(‘Te tpisteaesrtption => |] 1_response_nessig)s rovtput-pet_lina( The Upasteasterine =>" | lLeespone. result) Jatt eb. my past id anewer your question please mat as an anewer ohare who wouke ome hare ater nthe = er Kota Aught at 97 ipustackovertow. com questons/179¢8807lodtract-elomeris-rom-xmlin pq a

También podría gustarte