Hello,
the issue is that when I make the query the objects returned are 0.
The registries are like this:
<Invoice
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:udt="urn:un:unece:uncefact:data:specification:Unqualifi
edDataTypesSchemaModule:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:ccts="urn:un:unece:uncefact:do***entation:2"
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>CCIUBL</cbc:CustomizationID>
<cbc:ProfileID>urn:invinet:profile: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"
"urn:oasis:names:specification:ubl:schema:xsd:CommonBa
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.