Non-valid example of XML character sets usage

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE root[     <!ELEMENT root (&#x3C6;)>

Example of entities used in XML document

Math.ent <!ENTITY phi “&#x3C6;”> <!ENTITY alpha  “&#x3B1;”>

Basic example of SVG based font definition in XML

<?xml version="1.0" encoding="utf-8"?> <svg...

Example of namespace in XML

File1.xml <area>     <country>Russia</country>     <capital>Moscow</c...

Example of qualified names in XML

<?xml version="1.0" encoding="UTF-8"?> <root xmlns:r=”http://furniture.com/table”>     &nb...

Example of namespace for attributes

<?xml version="1.0" encoding="UTF-8"?> <root xmlns:r=”http://furniture.com/table”> <table length=”300...

Example of multiple namespaces

<e:area xmlns:e="http://www.earth.com/">     <c:country xmlns:c="http://www.earth.com/country/">  &nbs...

Basic example with XPath in XML

<?xml version="1.0" encoding="UTF-8"?> <root>     <employee>       ...

Example using axes names

child::Root This axis selects element nodes from Root node. child::*[@id] This axis selects child elements from context node with ...

Example of XML node types

<?xml version="1.0" encoding="UTF-8"?> <root>     <employee>       ...