Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Assign default namespace to XML fragment using XQuery

Daniel COct 31 2011 — edited Oct 31 2011
Hi everybody!

I need to add a default namespace declaration to a XML fragment using XQuery. I wrote following statement to assign fragment to $body:

<soap-env:Body>{
fn-bea:inlinedXML($content/text())}
</soap-env:Body>

The problem is "$content/text()" has no namespace declaration so I need to assign a default namespace (xmlns="") to it in order to apply some XQuery transformations to its content.

I know this can be easily done with a XSLT but I would like use XQuery instead.

Could anyone tell me how I could perform this task?

Thank you in advance,

Daniel.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 28 2011
Added on Oct 31 2011
1 comment
188 views