Category XML

XML DOM Node Information

The nodeName, nodeValue, and nodeType properties contain information about nodes. Node Properties In the XML DOM, each node is an object. Objects have methods and properties, that can be accessed and manipulated by JavaScript. Three important node properties are: nodeName…

XML DOM – Accessing Nodes

With the DOM, you can access every node in an XML document. Accessing Nodes You can access a node in three ways: By using the getElementsByTagName() method By looping through (traversing) the nodes tree By navigating the node tree, using…

XML DOM Nodes

According to the XML DOM, everything in an XML document is a node: The entire document is a document node Every XML element is an element node The text in the XML elements are text nodes Every attribute is an…

XML DOM Tutorial

What is the DOM? The DOM defines a standard for accessing and manipulating documents: “The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and…

XML on the Server

XML files are plain text files just like HTML files. XML can easily be stored and generated by a standard web server. Storing XML Files on the Server XML files can be stored on an Internet server exactly the same…

XML Schema

An XML Schema describes the structure of an XML document, just like a DTD. An XML document with correct syntax is called “Well Formed”. An XML document validated against an XML Schema is both “Well Formed” and “Valid”.

XML DTD

An XML document with correct syntax is called “Well Formed”. An XML document validated against a DTD is both “Well Formed” and “Valid”. What is a DTD? DTD stands for Document Type Definition. A DTD defines the structure and the…

XML, XLink and XPointer

XLink is used to create hyperlinks in XML documents. XLink is used to create hyperlinks within XML documents Any element in an XML document can behave as a link With XLink, the links can be defined outside the linked files…

XML and XQuery

What is XQuery? XQuery is to XML what SQL is to databases. XQuery was designed to query XML data. XQuery Example for $x in doc(“books.xml”)/bookstore/book where $x/price>30 order by $x/title return $x/title