XML on the Server

Similar to HTML files, XML files are plain text files that can easily be stored and generated by a standard web server. Storing XML Files on the Server: In the same way as HTML files, XML files can be stored on an Internet server. Write the following lines after starting Windows Notepad. Example: Tom Sapna … Read more

Categories XML

XML Schema

To describe the structure of an XML document, similar to a DTD, an XML Schema is used. A DTD or Document Type Definition is also used to define the structure and the legal elements and attributes of an XML document. A “Well Formed” XML document is the one with correct syntax, while an XML document … Read more

Categories XML

XML DTD

A “Well Formed” XML document is the one with correct syntax, while an XML document validated against a DTD is both “Well Formed” and “Valid”. What is DTD? DTD or Document Type Definition is used to define the structure and the legal elements and attributes of an XML document. Valid XML Documents: Along with being … Read more

Categories XML

XML Validator

To syntax-check our XML, we use an XML validator. Well-Formed XML Documents: A “Well Formed” XML document is the one with the correct syntax. Syntax rules: In XML Documents must have a root element. Elements must have a closing tag. Tags are case sensitive. Elements must be properly nested. Attribute values must be quoted. Example: … Read more

Categories XML

XML, XLink and XPointer

To create hyperlinks in XML documents, XLink is used which is a W3C Recommendation. In an XML document, any element can behave like a link. The links can be defined outside the linked files with XLink. XLink Browser Support: In XML documents, no browser support for XLink is available, but all major browsers support XLinks … Read more

Categories XML

XML XQuery

What is XQuery? Designed to query the XML data, XQuery is to XML what SQL is to databases. It is built on XPath expressions and is supported by all major databases. It is a W3C Recommendation too. Example: for $x in doc(“books.xml”)/bookstore/book where $x/price>100 order by $x/title return $x/title XQuery is About Querying XML: To … Read more

Categories XML