Hello:
I have the same problem that Ignacio had three years ago, but in my case the posted solution doesn’t work. I’m using Tamino 4.4.1.1 and I defined an “Any” element in order to store any xml document. This is my schema:
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:ino = "http://namespaces.softwareag.com/tamino/response2" xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xs = "http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<tsd:schemaInfo name = "OrchestratorMessage">
<tsd:collection name = "Integracion"></tsd:collection>
<tsd:doctype name = "Message">
<tsd:logical>
<tsd:content>closed</tsd:content>
</tsd:logical>
</tsd:doctype>
<tsd:adminInfo>
<tsd:server>4.4.1.1</tsd:server>
<tsd:modified>2006-09-21T13:35:41.343+02:00</tsd:modified>
<tsd:created>2006-09-21T13:35:41.343+02:00</tsd:created>
<tsd:version>TSD4.4</tsd:version>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = "Message">
<xs:complexType>
<xs:sequence>
<xs:element name = "ID" type = "xs:string"></xs:element>
<xs:element name = "timestamp" type = "xs:string"></xs:element>
<xs:element name = "XMLDocument">
<xs:complexType>
<xs:sequence minOccurs = "0">
<xs:any processContents = "skip" minOccurs = "0"></xs:any>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
I’ve successfully inserted a document:
<Message>
<ID>0123456789</ID>
<timestamp>20061002104510765</timestamp>
<XMLDocument>
<AnyElement>
<B>
<C>hello</C>
</B>
</AnyElement>
</XMLDocument>
</Message>
I’m trying with this query’s without success:
for $m in input()/Message where $m/XMLDocument/AnyElement/B/C="hello" return $m
for $m in input()/Message where $m/XMLDocument//B/C="hello" return $m
for $m in input()/Message where $m/XMLDocument/*/B/C="hello" return $m
I’ve tried as well with x-query:
Message[XMLDocument/AnyElement/B/C="hello"]
Message[XMLDocument//B/C="hello"]
Message[XMLDocument/*/B/C="hello"]
No documents are returned. Anyone can help me? Thanks
!!!
#Tamino#webMethods#API-Management