GithubHelp home page GithubHelp logo

seanpm2001 / learn-xml Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 208 KB

A repository for showcasing my knowledge of the XML markup language, and continuing to learn the language.

Home Page: https://github.com/seanpm2001/Learn-XML/

License: GNU General Public License v3.0

XML 100.00%
learn-xml xml-lang xml gpl3 gplv3 txt md xml-language language collection

learn-xml's Introduction


/Extensible_Markup_Language_(XML)_logo.svg

Learning XML (markup language)

I know a basic amount of knowledge of the XML language. This document will go over all my knowledge of the XML markup language:

Shebang in XML

This is an extremely important XML feature, especially when you aren't using the default *.xml file extension:

XML version 1 Shebang
<?xml version="1.0" encoding="UTF-8"?>
XML ISO 8859-1 Shebang
<?xml version="1.0" encoding="ISO-8859-1" ?>

Tags in XML

The tagged structure of XML works like this:

<?xml version="1.0" encoding="UTF-8"?>
<xml>
	<body>
		<filetree>
			<image1>JPEG</image1>
			<image2>PNG</image2>
			<image3>GIF</image3>
		</filetree>
	</body>
</xml>

You can make the tags anyway you want, as long as they contain the shebang, and follow the tag rules.

Comments in XML

Comments in XML are the same as the comments in other tag based languages, like HTML and SGML:

<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a single line comment !-->
<!-- This is
a multi-line
comment !-->

RDF summary in XML

A Resource Description Framework summary in XML can look like this:

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#" xmlns:eric="http://www.w3.org/People/EM/contact#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about="http://www.w3.org/People/EM/contact#me">
    <contact:fullName>Eric Miller</contact:fullName>
  </rdf:Description>
  <rdf:Description rdf:about="http://www.w3.org/People/EM/contact#me">
    <contact:mailbox rdf:resource="mailto:e.miller123(at)example"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://www.w3.org/People/EM/contact#me">
    <contact:personalTitle>Dr.</contact:personalTitle>
  </rdf:Description>
  <rdf:Description rdf:about="http://www.w3.org/People/EM/contact#me">
    <rdf:type rdf:resource="http://www.w3.org/2000/10/swap/pim/contact#Person"/>
  </rdf:Description>
</rdf:RDF>

Other knowledge of XML

  1. XML stands for eXtensible Markup Language

  2. XML uses so many different file extensions that it would be impossible to list them all here

  3. XML is a markup language, not a programming language

  4. XML is a W3C certified language

  5. XML is a tag based language, with syntax similar to other tag-based languages, such as HTML, SGML, etc.

  6. No other knowledge of the XML language


learn-xml's People

Contributors

seanpm2001 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.