Tuesday, July 10, 2007

Knowing XML (eXtensible Markup Language)

Now we'll learn XML. Before continuing, let's see the overview of this article.



What is it?

XML (eXtensible Markup Language) is a language that allows the programmer to create their own tag. It is similar with HTML (HyperText Markup Language) but we need a parser to manage user defined tag if it's not default tag of XML. XML contains data or text that can be transfered through internet.

Feature

  1. Create our own tag so flexible for both data or atribute
  2. Multiplatform. You no need to write code anymore when migrating to another operating system.
  3. Text based so the bug can be easily found

Node

Root node
node covering all document. In one document, there is only one node.
Element node
part of XML document that contains open tag and close tag.
Attribute node
name and value atribute written in open tag
Text node
contents of element
Comment node
code that won't be executed
Processing Instruction node
command to process XML document began with
Namespace node
namespace declaration

Sintaks

Now, let's make a simple XML file. Write this code and save as test.xml:


and write this to call your defined tag before:



You will find a XML page in browser.

XSLT


(eXtensible Stylesheet Language: Transformation) is development of the XSL. XSL is stylesheet for XML. It translates information from XML so we can see it in the monitor screen. The output can be teks, HTML, or other file type.

Oke, I think it's enough for introduction to XML. In next post, we'll learn about SVG (Scalable Vector Graphic).

3 comments:

Anonymous said...

plenty of input for your future bit on SVG: http://svg.startpagina.nl

Stu said...

Thanks a lot Stelt, it's very useful for SVG searcher like me..

Cempluk Story said...

wah adsener nihh...selamat yoh..welcome in adsenserphere..