Latest Tutorials

The Text interface

The Text interface represents a text content of an element or attribute. The nodeType value of Text is 3. The Text does not have any children.

How to create a new element with createElement() method?

The createElement() method is used to create a new element of the type specified by the tag name. Syntax for createElement() method createElement(...

How to create a new element with createElementNS() method?

The createElementNS() method us used to create an element with a namespace. Syntax for createElementNS() method: createElementNS(ns, name);...

The DOM interface properties in XML

DOM or Document Object Model is a model where all the contents of an XML document are approached...

How to display a list of child nodes in XML?

The childNodes property of an element returns a Nodelist of child nodes for the document. The node list

SVG in XML

The SVG stands for Scalar Vector Graphics. It is a W3C recommendation used to embed vector based graphics to an XML file...

Basics about XML schema

XML schema or XML Schema Definition (XSD) defines the structure of XM...

Defining simple and complex types with XML schema

Simple Type A simple type of element or attribute has only text data and does not contain child elements or attributes wit...

XML tutorial examples

Basic concept: Basic XML structure example

Example with XSLT and CSS styling using inline styles

The styleInline.xml file has the text values. styleInline.xml <?xml version="1.0" encoding="UTF-8"?>...