I downloaded XML example files and Schemas from HR-XML Consortium and tried to define them on Tamino. I?ve had some difficult with namespaces.
For the following Enrollment Document:
<?xml version="1.0" encoding="UTF-8"?>
??..
I?ve experienced the following:
If Tamino Schema has the http://ns.hr-xml.org as target namespace, I can load the document, but I can?t query this with x-query ?/Enrollment?, I can query the entire collection with x-query ?/? and the document is there. The xquery ?for $b in input() /Enrollment return $b? don?t read and ?for $b in input() /* return $b? read.
If Tamino Schema has no target namespace, I can?t load the original document (error Failed to locate schema for doctype ‘Enrollment’ in collection ‘HR’), I can load a document without namespaces references. (<?xml version="1.0" encoding="UTF-8"?>
?.)
How is the best way to manage namespaces in Tamino.
I use the Tamino Schema Converter (inoxsdconv) to generate TSD schemas. Attached are examples of them, and the xml files.
Files.zip (31.2 KB)
#webMethods#API-Management#Tamino