summaryrefslogtreecommitdiffhomepage
path: root/xml.html.markdown
diff options
context:
space:
mode:
authorSean Corrales <scorrales@usft.com>2015-10-14 14:52:37 -0500
committerSean Corrales <scorrales@usft.com>2015-10-14 14:52:37 -0500
commitfcc5086cfcac4e1efc365c16617aaf7ff9d86f80 (patch)
treeda683653842a5ae37177d191a51833f58e0b9a41 /xml.html.markdown
parentc357be714fe39c8c97e4d1ac12b3cdfb673d1e1e (diff)
parent8ec133b29595b8dac963eafa63ab0c479e37a3c1 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'xml.html.markdown')
-rw-r--r--xml.html.markdown21
1 files changed, 11 insertions, 10 deletions
diff --git a/xml.html.markdown b/xml.html.markdown
index 059ea132..4d33e614 100644
--- a/xml.html.markdown
+++ b/xml.html.markdown
@@ -38,15 +38,16 @@ Unlike HTML, XML does not specify how to display or to format data, just carry i
<!-- Above is a typical XML file.
It starts with a declaration, informing some metadata (optional).
-
+
XML uses a tree structure. Above, the root node is 'bookstore', which has
- three child nodes, all 'books'. Those nodes has more child nodes, and so on...
-
- Nodes are created using open/close tags, and childs are just nodes between
+ three child nodes, all 'books'. Those nodes have more child nodes (or
+ children), and so on...
+
+ Nodes are created using open/close tags, and children are just nodes between
the open and close tags.-->
-<!-- XML carries two kind of data:
+<!-- XML carries two kinds of data:
1 - Attributes -> That's metadata about a node.
Usually, the XML parser uses this information to store the data properly.
It is characterized by appearing with the format name="value" within the opening
@@ -54,8 +55,8 @@ Unlike HTML, XML does not specify how to display or to format data, just carry i
2 - Elements -> That's pure data.
That's what the parser will retrieve from the XML file.
Elements appear between the open and close tags. -->
-
-
+
+
<!-- Below, an element with two attributes -->
<file type="gif" id="4293">computer.gif</file>
@@ -68,14 +69,14 @@ A XML document is well-formated if it is syntactically correct.
However, it 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.
+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
-<!-- Below, you can see an simplified version of bookstore document,
+<!-- Below, you can see an simplified version of bookstore document,
with the addition of DTD definition.-->
<?xml version="1.0" encoding="UTF-8"?>