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?
- the xpath route correct element?
- 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.
likely not, because need provide namespace. or use "any namespace":
for $i in $querytoneevt/*:allowedchannel
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
Post a Comment