From 6c3fb00239fc0a6bb518a5b086827140403bbb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guilherme=20Farias=20Duda?= Date: Fri, 14 Mar 2014 14:37:48 -0200 Subject: [PATCH 1/2] Create xml.html.markdown --- xml.html.markdown | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 xml.html.markdown diff --git a/xml.html.markdown b/xml.html.markdown new file mode 100644 index 00000000..4063afdc --- /dev/null +++ b/xml.html.markdown @@ -0,0 +1,7 @@ +--- +language: xml +filename: learnxml.xml +contributors: + - ["João Farias", "https://github.com/JoaoGFarias"] +--- + From 91bab3c90cd8b8b16521b7359977edcd90bc6bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guilherme=20Farias=20Duda?= Date: Fri, 14 Mar 2014 15:53:38 -0200 Subject: [PATCH 2/2] XML - Syntax and Document Definition using DTD The only problem was highlighting the DTD code without breaking the XML code block. --- xml.html.markdown | 124 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) diff --git a/xml.html.markdown b/xml.html.markdown index 4063afdc..349d4763 100644 --- a/xml.html.markdown +++ b/xml.html.markdown @@ -5,3 +5,127 @@ contributors: - ["João Farias", "https://github.com/JoaoGFarias"] --- +XML is a markup language designed to store and transport data. + +Unlike HTML, XML does not specifies how to display or to format data, just carry it. + +* XML Syntax + +```XML + + + + + + Everyday Italian + Giada De Laurentiis + 2005 + 30.00 + + + Harry Potter + J K. Rowling + 2005 + 29.99 + + + Learning XML + Erik T. Ray + 2003 + 39.95 + + + + + + + + + + +computer.gif + + +``` + +* Well-Formated Document x Validation + +A XML document is well-formated if it is syntactically correct. +However, is possible to inject more constraints in the document, +using document definitions, such as DTD and XML Schema. + +A XML document which follows a document definition is called valid, +regarding that document. + +With this tool, you can check the XML data outside the application logic. + +```XML + + + + + + + + Everyday Italian + 30.00 + + + + + + + + + + +]> + + + + + + + + + + + + + +]> + + + + Everyday Italian + 30.00 + + + + +``` + + +