tanszek:oktatas:techcomm:xml_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:techcomm:xml_2 [2024/10/07 17:25] – [XML Namespaces] knehez | tanszek:oktatas:techcomm:xml_2 [2024/10/07 17:30] (current) – [XML Namespaces] knehez | ||
---|---|---|---|
Line 2: | Line 2: | ||
<sxh xml> | <sxh xml> | ||
- | <?xml version=' | + | <?xml version=' |
<!-- first XML example --> | <!-- first XML example --> | ||
<message id=" | <message id=" | ||
Line 72: | Line 72: | ||
In this example, the namespace prefix '' | In this example, the namespace prefix '' | ||
+ | |||
+ | ==== XML Interpreters ==== | ||
+ | |||
+ | **XML interpreters** process XML documents by performing **syntactic validation**. | ||
+ | |||
+ | === Definition === | ||
+ | An XML document is considered **" | ||
+ | |||
+ | This means: | ||
+ | - It has a **single root element**. | ||
+ | |||
+ | - Every opening tag has a corresponding closing tag. | ||
+ | |||
+ | - The attributes are properly specified. | ||
+ | |||
+ | Therefore, the term **" | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <sxh xml> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | This XML is **syntactically incorrect** because the `<a>` tag is not closed. | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | The following example is neatly formatted but still **not well-formed**: | ||
+ | |||
+ | <sxh xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Here’s the correct version: | ||
+ | |||
+ | <sxh xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | What’s the difference? In the incorrect version, the `< |
tanszek/oktatas/techcomm/xml_2.1728321948.txt.gz · Last modified: 2024/10/07 17:25 by knehez