Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Berkely DB > [DB XML] Query ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1768 of 1804
Post > Topic >>

[DB XML] Query with namespaces

by brais.invinet@[EMAIL PROTECTED] Sep 12, 2007 at 02: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="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.
 




 1 Posts in Topic:
[DB XML] Query with namespaces
brais.invinet@[EMAIL PROT  2007-09-12 02:39:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 12:39:37 CDT 2008.