XML trying to get one value from xml

Hello,

I have some problems with getting single value from xml which is my request response variable caled pv!Resault(there are statusLine. statusCode, headers, contentyType and body). Im trying xathsnippet function but doesn't work. This is how expresson looks like xpathsnippet(pv!Result.body,"//DWDOCID") and it's stored in pv!docID (text type). I have to get DWDOCID value(in this case is 4422060)                                                          My xml response below

statusLine=HTTP/1.1 200 OK, statusCode=200, headers=[object Object], contentType=application/xml; charset=utf-8, body=<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?><DocumentIndexFields xmlns:s="">dev.docuware.com/.../services" xmlns="">dev.docuware.com/.../platform"><Field FieldName="DWDOCID" FieldLabel="Doc ID" ReadOnly="true"><Int>4422060</Int></Field><Field FieldName="DWDOCSIZE" FieldLabel="Document Size" ReadOnly="true"><Int>6450</Int></Field><Field FieldName="DWSTOREUSER" FieldLabel="Store User" ReadOnly="true"><String>APPIAN</String></Field><Field FieldName="DWSTOREDATETIME" FieldLabel="Store Date" ReadOnly="true"><DateTime>2020-02-12T10:12:44Z</DateTime></Field><Field FieldName="DWEXTENSION" FieldLabel="Extension" ReadOnly="true"><String>.png</String></Field><Field FieldName="DWMODUSER" FieldLabel="Modification User" ReadOnly="true"><String>APPIAN</String></Field><Field FieldName="DWMODDATETIME" FieldLabel="Modification Date" ReadOnly="true"><DateTime>2020-02-13T11:40:28Z</DateTime></Field><Field FieldName="DWSECTIONCOUNT" FieldLabel="File count" ReadOnly="true"><Int>1</Int></Field><Field FieldName="DWPAGECOUNT" FieldLabel="File count" ReadOnly="true"><Int>1</Int></Field><Field FieldName="NRKONTA" FieldLabel="Nr Konta"><String>123456</String></Field><Field FieldName="OPIS" FieldLabel="Opis"><String>-</String></Field><Field FieldName="WZÓR" FieldLabel="Wzór"><String>-</String></Field><Field FieldName="ODDZIAL" FieldLabel="Oddzial"><String>1234</String></Field><Field FieldName="NRKLIENTA" FieldLabel="Nr Klienta"><String>123456</String></Field><Field FieldName="USUNIETY" FieldLabel="USUNIETY" IsNull="true" /><Field FieldName="PLIKWENUS" FieldLabel="Plik_WENUS" IsNull="true" /><Field FieldName="LOGIN_AD" FieldLabel="LOGIN_AD" IsNull="true" /><Field FieldName="ID_ZGLOSZENIA_EZV" FieldLabel="ID zgloszenia EZV" IsNull="true" /><Field FieldName="ARCHIWKOD" FieldLabel="ARCHIWKOD" IsNull="true" /><Field FieldName="MODULOBGZ" FieldLabel="Modulo BGZ" IsNull="true" /><Field FieldName="KLASA_JAWNOSCI" FieldLabel="KLASA_JAWNOSCI" IsNull="true" /><Field FieldName="DOKUMENTY_DO_BRAKOWANIA" FieldLabel="DOKUMENTY_DO_BRAKOWANIA" IsNull="true" /><Field FieldName="OSOBA_FIZYCZNA" FieldLabel="OSOBA FIZYCZNA" IsNull="true" /><Field FieldName="REGON" FieldLabel="REGON" IsNull="true" /><Field FieldName="NAZWA_KLIENTA" FieldLabel="NAZWA KLIENTA" IsNull="true" /><Field FieldName="NRUNIKAT" FieldLabel="NRUNIKAT" IsNull="true" /><Field FieldName="GWID" FieldLabel="GWID" IsNull="true" /><Field FieldName="OKRES_PRZECHOWYWANIA" FieldLabel="OKRES_PRZECHOWYWANIA" IsNull="true" /><Field FieldName="DATADOKUMENTU" FieldLabel="Data Dokumentu" IsNull="true" /><Field FieldName="DATA_DO_BRAKOWANIA" FieldLabel="DATA_DO_BRAKOWANIA" IsNull="true" /><Field FieldName="DATA_ZAKONCZENIA_RELACJI" FieldLabel="DATA_ZAKONCZENIA_RELACJI" IsNull="true" /><Field FieldName="LEXMARK_ID" FieldLabel="LEXMARK_ID" IsNull="true" /><Field FieldName="DWDISK" FieldLabel="Disk Number" ReadOnly="true"><Int>6</Int></Field><Field FieldName="DWDISKNO" FieldLabel="Disk Number" ReadOnly="true"><Int>6</Int></Field></DocumentIndexFields>]

Thank you inadvance
Dawid

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data