KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using eXist-DB to store XML documents. Here's a sample XML file with the namespace info: <?xml version="1.0" encoding="utf-8"?> <ClinicalDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3"> <name> <family>Smith</family> <middle>Blade</middle> <first>John</first> </name> <name> <family>Frost</family> <middle>Bill</middle> <first>Conrad</first> </name> </ClinicalDocument> The query is : declare namespace xsd = "http://www.w3.org/2001/XMLSchema"; declare namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"; for $x in doc("/db/HL7/cda2.xml")/ClinicalDocument/name return $x/family I tried to declare the third namespace within the query but it doesn't seem to work.
Tags (comma-separated)
Save Edits
Cancel