Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XQuery term


May 28, 2021 XQuery


Table of contents


XQuery term

In XQuery, a node is a term that you'll be introduced to in this section.

In XQuery, there are seven nodes: elements, properties, text, namespaces, processing instructions, comments, and document nodes (or root nodes).


XQuery term

Node

In XQuery, there are seven nodes: elements, properties, text, namespaces, processing instructions, comments, and document (root) nodes. X ML documents are treated as node trees. The root of a tree is called a document node or root node.

Take a look at the following XML documentation:

<?xml version="1.0" encoding="ISO-8859-1"?>

<bookstore>

<book>
<title >Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>

</bookstore>

Examples of nodes in the XML documentation above:

<bookstore> (文档节点)

<author>J K. Rowling</author> (元素节点)

(Attribute node)