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.
- Create our own tag so flexible for both data or atribute
- Multiplatform. You no need to write code anymore when migrating to another operating system.
- Text based so the bug can be easily found
node covering all document. In one document, there is only one node.
part of XML document that contains open tag and close tag.
name and value atribute written in open tag
contents of element
code that won't be executed
Processing Instruction node
command to process XML document began with
SintaksNow, 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.
(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).