XQuery AddXQuery Add is used for adding elements, attributes, HTML elements and text in the results from the input documents. Let's understand it by using an example. XQuery Add ExampleTake an XML file named books.xml, having the following data. books.xml XQuery Expressionbooks.xqy Now this XQuery expression will return the title elements in the same manner as they are described in the input document. Output: Now you can add your own elements and attributes to the result. Add HTML Elements and TextIf you want to add some HTML elements to the result, use the XQuery like this: book.xqy: Next TopicXQuery Functions |