tanszek:oktatas:techcomm:xml_2
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tanszek:oktatas:techcomm:xml_2 [2024/10/07 17:25] – created 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 55: | Line 55: | ||
| Since creators of XML documents use their own vocabulary to build XML, **name conflicts** are possible. For example, the ''< | Since creators of XML documents use their own vocabulary to build XML, **name conflicts** are possible. For example, the ''< | ||
| - | + | <sxh xml> | |
| - | < | + | < |
| + | </ | ||
| Here, the qualified element is '' | Here, the qualified element is '' | ||
| 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.1728321903.txt.gz · Last modified: 2024/10/07 17:25 by knehez
