×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's XML Notes
      
    XMLExtensible Markup Languageapplication/xml.xmlXML is extensibleXML carries the data, does not present itXML is a public standardXML documentexchange<?xml version="1.0" encoding = "UTF-8"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>< ><element>needs to be closed<element>...</element><?xml version="1.0"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <address/>
   <phone>(011) 123-4567</phone>
</student><company></contact-info></contact-info><?xml version = "1.0"?>
<contact-info>
<company>Learn Practice Teach
</contact-info>
</company><?xml version = "1.0"?>
<contact-info>
   <company>Applications.ge</company>
<contact-info>root element<x><y><?xml version = "1.0"?>
<x>...</x>
<y>...</y>case-sensitivecase sensitivity<?xml version="1.0"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <address/>
   <phone>(011) 123-4567</Phone>
</student><phone></phone><?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?><student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student><?xml encoding="UTF-8" standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 7: Malformed declaration expecting version<?xml Version="1.0" encoding="UTF-8" standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 7: Malformed declaration expecting version<?xml<? version="1.0" encoding="UTF-8" standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 3: xmlParsePI : no target namefirst statement<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>error on line 6 at column 6: XML declaration allowed only at the start of the documentversionencodingstandalone<?xml encoding="UTF-8" standalone="no" version="1.0"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 7: Malformed declaration expecting version<?xml version='1.0' encoding='UTF-8' standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>elementsattributesdata types<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="company">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="id" type="xs:unsignedInt" />
        <xs:element name="name" type="xs:string" />
        <xs:element name="phone" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema><company>
    <id>2859385</id>
    <name>Tanmay Patil</name>
    <phone>(011) 123-4567</phone>
</company>https://www.liquid-technologies.com/online-xml-to-xsd-converterthe rootXML treeroot elementchild elements<root>
  <child>
    <subchild>.....</subchild>
  </child>
</root>parentchildsiblingParentsChildrenSiblingshttps://www.xmlviewer.org/Books<books>
  <book category="cooking">
    <title lang="en">The goals</title>
    <author>Giada De Laurentiis</author>
    <year>2007</year>
    <price>30.00</price>
  </book>
  <book category="children">
    <title lang="en">12 rules for life</title>
    <author>J K. Rowling</author>
    <year>2002</year>
    <price>29.99</price>
  </book>
  <book category="web">
    <title lang="en">The richest man in Babilon</title>
    <author>Erik T. Ray</author>
    <year>2001</year>
    <price>39.95</price>
  </book>
</books>XML Attributename/valueone or more<a href = "http://www.applications.ge/">Applications.ge</a>hrefattribute namehttp://www.applications.geattribute valueHREFhref<?xml version="1.0"?>
<student>
    <a href="http://www.applications.ge/" hreF="HTTP://applications.ge/">Applications.ge</a>
</student><?xml version="1.0"?>
<student>
    <a href="http://www.applications.ge/" href="HTTP://applications.ge/">Applications.ge</a>
</student>error on line 3 at column 73: Attribute href
 redefined<?xml version="1.0"?>
<student>
    <a "href"="http://www.applications.ge/">Applications.ge</a>
</student>error on line 3 at column 8: error parsing attribute name
 '"<?xml version="1.0"?>
<student>
    <a href=http://www.applications.ge/>Applications.ge</a>
</student>error on line 3 at column 13: AttValue: " or ' expected-_.<?xml version="1.0" encoding="UTF-8"?>
<student>
   <first-name>George</first-name>
   <phone.mobile>(011) 123-4567</phone.mobile>
   <native_language>English</native_language>
   <city />
</student>symbols-_.0-9case sensitivethe sametextelements<?xml version="1.0" encoding="UTF-8"?>
<student>
   <first-name>George</first-name>
   <phone.mobile>(011) 123-4567</phone.mobile>
   <native_language>English</native_language>
   <city />
</student>.-digitCDATACharacter Dataare not parsed<?xml version="1.0" encoding="UTF-8"?>
<student>
    <!-- Some comment about the student -->
    <first-name>George</first-name>
    <phone.mobile>(011) 123-4567</phone.mobile>
    <city />
    <description>
        <![CDATA[
            <p>
            <a href="/mylink/article1"><img style="float: left; margin-right: 5px;" height="80" src="/mylink/image" alt=""/></a>
            Author Names
            <br/><em>Date</em>
            <br/>Paragraph of text describing the article to be displayed</p>
        ]]>        
    </description>
</student>CDATA Start section<![CDATA[CDATA End section]]>CData sectionCData<>&part of the document]]>--xmlnshttp://www.w3.org/1999/xhtml.xml<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CDATA Example</title>
    </head>
    <body>
        <h2>Using a Comment</h2>
        <div id="commentExample">
            <!--
            You won't see this in the document
            and can use reserved characters like
            < > & "
            -->
        </div>
        <h2>Using a CDATA Section</h2>
        <div id="cdataExample">
            <![CDATA[
            You will see this in the document
            and can use reserved characters like
            < > & "
            ]]>
        </div>
    </body>
</html>