HiveBrain v1.2.0
Get Started
← Back to all entries
gotchaMinor

What is the difference between node types and atomic types in XML

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
thewhatnodexmldifferencebetweentypesandatomic

Problem

Im Studying TSQL and I came to the chapter regarding XML, and here a question that I cannot find an answer: "What is the difference between node types and atomic types"?

Thank you!

Solution

Sounds like you are not asking about XML itself, but about the XQuery/XPath/XSLT data model known as XDM.

In these languages there are two kinds of value: nodes, which basically means anything within an XML document, and atomic values like integers and strings which have no relationship to any XML document. So for example the query count(//employee) takes a set of nodes as input, and produces an atomic value (an integer) as output. An important operation is atomization, which extracts an atomic value from a node, for example the string that is the value of an attribute node.

Context

StackExchange Database Administrators Q#57303, answer score: 3

Revisions (0)

No revisions yet.