xml - How to XQuery an {http://schemas.xmlsoap.org/soap/encoding/}Array element -


:

i'm trying query array element xquery transformation in osb oepe, , put queried elements in array element.

this example of need query

<complextype name="querytoneevt">    <sequence>       ...       <element name="allowedchannel" nillable="true" type="impl:arrayof_xsd_string"/>       ...    </sequence> </complextype> 

the arrayof_xsd_string element this:

<complextype name="arrayof_xsd_string">    <complexcontent>       <restriction base="soapenc:array">          <attribute ref="soapenc:arraytype" wsdl:arraytype="xsd:string[]"/>       </restriction>    </complexcontent> </complextype> 

then, query on allowedchannel element, did operation

for $i in $querytoneevt/allowedchannel/? return      ¿? 

from this, have few questions?

  1. the xpath route correct element?
  2. how determine type of root array member , target array member must put queried array member? (in ¿? symbols) note: target array have same structure root, because has same type arrayof_xsd_string.

  1. likely not, because need provide namespace. or use "any namespace":

    for $i in $querytoneevt/*:allowedchannel 
  2. i not understand question. if source , target of same type, copy root element as-is, including attributes.

please provide examples of source , target structures, easier see once.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -