Searching for a string in the whole document

Hi,

I want to search for a string in the whole document, but the node name is not known. My schema contains a Document element and, under this element I store my XML documents. The Document type is ANY it has no indexes.

How do I write the x-query to get those documents that contains the search string?

The Document~=‘string’ does not work.

thanks for help,
dzsolt

Hi,
you should try the following x-query

/ROOTDOCUMENT[.~=“String*”]

Hoping that this will help you.

Uli

Thanks, it works fine.

bye
dzsolt