Dear Simon,

 

You could simply execute the “set stripns true” command before the “create db” one.

 

Best regards,

 

Fabrice Etanchaud

Questel/Orbit

 

De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Daum, Simon
Envoyé : lundi 23 juin 2014 23:20
À : basex-talk@mailman.uni-konstanz.de
Objet : [basex-talk] strip namespaces

 

Hi there,

 

is there possibility to strip xml namespaces during input via the c# client api. In the GUI there is a checkbox „strip namespaces“ in the „new database“ panel.

I want to use this in a command like this:  

 

session.Execute(@"create db  xObermayer E:\Dev\BaseX\04_Obermeyer.xml");

 

so I dont have to use the namespace stuff like in this query:

 

        var result = session.Execute("XQUERY declare namespace exp=\"urn:oid:1.0.10303.28.2.1.1\" ; declare namespace" +

            " doc=\"urn:oid:1.0.10303.28.2.1.3\"; declare namespace ifc=\"http://www.iai-tech.org/ifcXML/IFC2x2/FINAL\";" +

         " for $x in /doc:iso_10303_28/*/ifc:IfcRelContainedInSpatialStructure return $x");

 

Regards

Simon

-  -  -  -  -  -  -  -  -

 

Dipl.-Ing. Simon Daum

Lehrstuhl für Computergestützte Modellierung und Simulation

Technische Universität München

Arcisstraße 21

D-80290 München

 

Tel: +49 89 289 25065

Fax: +49 89 289 25051

Web: www.cms.bv.tum.de

 

-  -  -  -  -  -  -  -  -