XQuery acts like an expression language since it specifies the exact flow of data and operations to achieve a desired result. It does not mention how the data is associated with a particular programming platform in terms of syntax. For example, an expression specifies the result value of an addition but does not deal with the declaration of variables, the data types used and commands or function calls.
XML documents can be created with the help of the syntax provided with XQuery. The XML documents are processed to extract structural information, which is classified as document nodes, elements, attributes, text nodes, comments, processing instructions and namespaces. All data items or values are treated as sequences by default. Either atomic values or nodes are the type of data items present in an XML document. The atomic values like Boolean, integer and string are as per XML schema specification. Features such as full text based search and document updates are currently under development.
Read More »