dbTalk Databases Forums  

[DB XML] Query with namespaces

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss [DB XML] Query with namespaces in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
brais.invinet@gmail.com
 
Posts: n/a

Default [DB XML] Query with namespaces - 09-12-2007 , 04:39 AM






Hello,

the issue is that when I make the query the objects returned are 0.

The registries are like this:

<Invoice
xmlns:ext="urnasis:names:specification:ubl:schem a:xsd:CommonExtensionComponents-2"
xmlns:cac="urnasis:names:specification:ubl:schem a:xsd:CommonAggregateComponents-2"
xmlns:udt="urn:un:unece:uncefact:data:specificatio n:Unqualifi
edDataTypesSchemaModule:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:ccts="urn:un:unece:uncefact:documentation:2"
xmlns:qdt="urnasis:names:specification:ubl:schem a:xsd:QualifiedDatatypes-2"
xmlns:cbc="urnasis:names:specification:ubl:schem a:xsd:CommonBasicComponents-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>CCIUBL</cbc:CustomizationID>
<cbc:ProfileID>urn:invinetrofile:solofac-1.0</cbc:ProfileID>
<cbc:ID>0-2007</cbc:ID>
<cbc:CopyIndicator>false</cbc:CopyIndicator>
<cbc:IssueDate>2007-04-01</cbc:IssueDate>
<cbc:InvoiceTypeCode>Comercial</cbc:InvoiceTypeCode>
</Invoice>

I have defined the 'cbc' namespace:
dbxml> setNamespace "cbc"
"urnasis:names:specification:ubl:schema:xsd:Comm onBa
sicComponents-2"

And the query is, for example:
dbxml> query 'collection("invoices1.dbxml")/Invoice/cbc:ID'
0 objects returned for eager expression 'collection("invoices1.dbxml")/
Invoice/c
bc:ID'

This example, without the 'cbc' namespace, works correctly.

Thanks.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.