[xquery-talk] namespace questions

Jonathan Robie jonathan.robie at datadirect.com
Mon May 8 11:29:54 PDT 2006


To your original question - if I wanted to create this document:

XML Document:

<foo xmlns:sam="http://www.aaa.aaa/a"  xmlns:huhu="http://www.aaa.aaa/b">
    <sam:bar/>
    <huhu:ele>text</huhu:ele>
</foo>

I would use this query:

XQuery:

<foo xmlns:sam="http://www.aaa.aaa/a"  xmlns:huhu="http://www.aaa.aaa/b">
    <sam:bar/>
    <huhu:ele>text</huhu:ele>
</foo>

In general, if you want to create literal XML, just copy and paste it 
into a query window, and you've created the right constructor in the 
most natural way.

Jonathan

-- 
Read my Blog: http://blogs.datadirect.com/jonathan_robie/
Learn XQuery: http://media.datadirect.com/download/docs/ddxquery/tutorial_query.html
Learn XQJ (the JDBC for XQuery): http://www.datadirect.com/developer/xquery/topics/xqj_tutorial/
Get DataDirect XQuery: http://www.datadirect.com/products/xquery/



More information about the talk mailing list