Комментарий к XML | Xquery

Версия 4.5 от Alexandr Fokin на 2020/08/06 10:08

  • Alexandr Fokin
    Alexandr Fokin 2020/08/06 14:02

    SOAP query

    xml.value('
        declare namespace s="http://schemas.xmlsoap.org/soap/envelope/";
        /s:Envelope[1]/s:Body[1]/CreateResponse[1]/CreateResult[1]/Id[1]'
    ,
    'nvarchar(50)'
    )

    ;with
    xmlnamespaces(
    'http://schemas.xmlsoap.org/soap/envelope/' as [SOAP]
    )
    select xml.value(
       '/SOAP:Envelope[1]/SOAP:Body[1]/CreateResponse[1]/CreateResult[1]/Id[1]',
       'varchar(max)'
    )