Изменения документа XML Xquery | JSON JsonPath

Редактировал(а) Alexandr Fokin 2024/04/20 22:15

<
От версии < 4.4 >
отредактировано Alexandr Fokin
на 2020/08/06 10:03
К версии < 4.2 >
отредактировано Alexandr Fokin
на 2020/08/06 10:02
>
Изменить комментарий: Добавлен комментарий

Комментарий

Подробности

XWiki.XWikiComments[0]
Комментарий
... ... @@ -1,18 +1,9 @@
1 1  SOAP query
2 2  
3 3  {{code language="sql"}}
4 -xml.value('
4 +.value('
5 5  declare namespace s="http://schemas.xmlsoap.org/soap/envelope/";
6 6  /s:Envelope[1]/s:Body[1]/CreateResponse[1]/CreateResult[1]/Id[1]',
7 7  'nvarchar(50)'
8 8  )
9 -
10 -;with
11 - xmlnamespaces(
12 - 'http://schemas.xmlsoap.org/soap/envelope/' as [SOAP]
13 - )
14 -select xml.value(
15 -'/SOAP:Envelope[1]/SOAP:Body[1]/CreateResponse[1]/CreateResult[1]/Id[1]',
16 -'varchar(max)'
17 -)
18 18  {{/code}}