XSD How To?

A reference to a DTD or an XML Schema is possible for the XML documents.

A Simple XML Document:

Note.xml:

<?xml version="1.0"?>
<
Read More
Categories a1

DTD – Entities

To define shortcuts to special characters, the entities are used which can be declared either internal or external. There are three parts of an entity:

  • An ampersand
Read More
Categories a1

XML Elements vs. Attributes

For the attributes and the child elements in XML, there are no rules about when to use which one.

Use of Elements vs Attributes:

We can store … Read More

Categories a1

DTD – Attributes

An ATTLIST declaration is used to declare the attributes in a DTD.

Declaring Attributes:

Syntax: Attribute declaration:

<!ATTLIST element-name attribute-name attribute-
Read More
Categories a1

DTD – Elements

An ELEMENT declaration is used to declare the elements in a DTD.

Declaring Elements:

Syntax:

<!ELEMENT element-name category>

OR

<!
Read More
Categories a1

DTD – XML Building Blocks

The elements are the main building blocks of both XML and HTML documents.

The Building Blocks of XML Documents:

The XML documents, when viewed from a DTD … Read More

Categories a1

XQuery Functions

The same functions library is shared by XQuery 1.0, XPath 2.0, and XSLT 2.0. Built on XPath expressions, XQuery 1.0 and XPath 2.0 share the same data … Read More

XQuery Syntax

There are some syntax rules defined for XQuery, such as, it is case-sensitive and that the elements, attributes, and variables in XQuery must be valid XML names.… Read More