Active Query Builder support area

Parsed SQL expression tree as XML?

Avatar
  • updated
  • Completed

What is the recommended way to get the expression tree of a parsed SQL as XML?

Avatar
Andrey Zavyalov, PM

You can get the query structure in XML via the QueryBuilder.Query.StructureXml property. This structure is not a complete serialization of the syntax tree, and can not be loaded back to the component. It can be used for the query analysis purposes. If you need deeper analysis of the query, use the component's API that described here, look at the Query Structure demo project.

In the near future we will implement complete syntax tree serialization to save and load queries in XML form.

Avatar
no -name

Thank you very much! This is exactly what we are looking for! :)