2
以下に示すように2つのXMLファイルがあります。最初のXML文書には1つのタグしか含まれていません。 XQuery:2番目のXML文書にXML文書を挿入する
<office>HeadOffice</office>
そして、第2の文書:
<Data>
<location>
<city>London</city>
<country>England</country>
<region>Europe</region>
</location>
<services>
<consulting>SAP</consulting>
<industry>Oil</industry>
</services>
</Data>
私は何をしたいが、それは以下のようになりように、第2のXML文書に最初の文書(単一のタグ)を挿入することです。最初の文書はタグ内にのみ挿入されています。
<Data>
<location>
<city>London</city>
<country>England</country>
<region>Europe</region>
<office>HeadOffice</office>
</location>
<services>
<consulting>SAP</consulting>
<industry>Oil</industry>
</services>
</Data>
残念ながら私は、私が使用することはできませんすなわち、このためのXQuery更新機能の仕様を使用することはできませんよ。
insert node<office>HeadOffice</office> into $data/location
は、どのように私はこれを行うに行きますか?私は "insert node"メソッドを使う以外に何も見つけられないようです。どんな助けでも大歓迎です。
乾杯 ジェイ