tanszek:oktatas:techcomm:xml_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tanszek:oktatas:techcomm:xml_2 [2024/10/07 17:26] – [XML Example] knehez | tanszek:oktatas:techcomm:xml_2 [2024/10/07 17:30] (current) – [XML Namespaces] knehez | ||
---|---|---|---|
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.1728321992.txt.gz · Last modified: 2024/10/07 17:26 by knehez