Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

XML Search in HANA


I have a use case where I have data stored as XML data type (BLOB) in a HANA table and we want to search specific nodes for specific values. One sample XML value would be

<?xml version="1.0" encoding="utf-8" ?>

For example in SQL Server I'm able to use the following query to find out the desired result:

select * from dbo.XML_DATEN where XML_Data.value('(/DocumentAttributes/LetterID)[1]', 'int') = 473

In this example the query returns me all rows where under the node DocumentAttributes the LetterID is set to 473.

Is something similar also possible with HANA either over CE Functions or SQL Script? I searched the SQL reference without any success.

Thanks and Regards,

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question