Sample XML file and schema

XML is Extensible Markup Language.

XML follows a set of standards and rules for encoding data in human-readable and efficiently transferrable and machine-readable over the network with added simplicity and usability.

The World Wide Web Consortium‘s maintains the XML Specification.

It lets you define objects, properties, functions in the format of file conforming to specifications.

XML plays an important role in IT systems.

XML is used for distributing data over the network with simple serialization and deserialization. These serialization and deserialization are supported across the platform and OS system and IT.

It suits any operating system, application, or browser.

Sample XML file,

<?xml version="1.0"?>
<BooksOrder>
  <book id="bk101">
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
  </book>
  <book id="bk102">
    <author>Ralls, Kim</author>
    <title>Midnight Rain</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
  </book>
</BooksOrder>

XSD is the specifications and standards around how to describe the elements in an Extensible Markup Language (XML) document.

The schema element definition must include the following namespace,

http://www.w3.org/2001/XMLSchema

Please see here for more details,

Do you have any comments or ideas or any better suggestions to share?

Please sound off your comments below.

Happy Coding !!



Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.



Leave a Reply

Your email address will not be published. Required fields are marked *