> Yup that works Great... Just 1 follow up
> say I have an xml file (product-ns.xml) I'd like to load into
> XML datastore with the prod namespace defined
> Is there a way to do that?
>
> <prod:product dept="MEN" xmlns="http://datypic.com/prod";>
>    <prod:number>563</number>
>    <prod:name language="en">Floppy Sun Hat</name>
> </prod:product>
>
> Then
> Through a document load, load it
> xdmp:document-load("c:\Program
> Files\MarkLogic\TestXQuery\product-ns.xml",
>     <options xmlns="xdmp:document-load">
>       <uri>product-ns.xml</uri>
>       <format>xml</format>
>     </options>)

Hi Mike,

You mean storing the XML into the database including prefixes and namespaces? I 
don't see any obvious reason why this shouldn't work. But you still have to 
declare the namespace prefixes in your query to be able to use that..

You might want to clean up the prefixes in your XML though.. ;-)

Kind regards,
Geert


Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to