{"id":189,"date":"2024-02-29T16:42:19","date_gmt":"2024-02-29T16:42:19","guid":{"rendered":"https:\/\/www.xopsschool.com\/tutorials\/?p=189"},"modified":"2024-02-29T16:44:13","modified_gmt":"2024-02-29T16:44:13","slug":"what-is-xml-2","status":"publish","type":"post","link":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/","title":{"rendered":"what is xml ?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"385\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png\" alt=\"\" class=\"wp-image-190\" style=\"width:572px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png 900w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML-300x128.png 300w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML-768x329.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p>XML stands for Extensible Markup Language.It was designed to store and transport data, making it a versatile tool for exchanging information between different systems. Think of it as a filing system for information, where everything has a designated place and label.XML is designed to transport and store data efficiently. It&#8217;s widely used for various purposes, including.<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exchanging data between different software applications<\/li>\n\n\n\n<li>Configuring settings in programs<\/li>\n\n\n\n<li>Storing product information in e-commerce platforms<\/li>\n\n\n\n<li>Sharing scientific data<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Key Features of XML:<br><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Self-describing: XML defines its own structure using tags, making it easy to understand the data even without prior knowledge.<\/li>\n\n\n\n<li>Platform-independent: XML files can be opened and processed on different operating systems without any issues.<\/li>\n\n\n\n<li>Extensible: You can create your own tags to represent any kind of data, making it highly flexible.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Structure of an XML Document:-<\/h4>\n\n\n\n<p><strong>XML document consists of:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ags: These define the different elements of the data. Tags are enclosed in angle brackets (&lt;>).<\/li>\n\n\n\n<li>Attributes: These provide additional information about an element, placed within the opening tag.<\/li>\n\n\n\n<li>Content: This is the actual data stored within the tags.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example :-<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;book>\r\n  &lt;title>The Lord of the Rings&lt;\/title>\r\n  &lt;author>J. R. R. Tolkien&lt;\/author>\r\n  &lt;year>1954&lt;\/year>\r\n&lt;\/book>\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">XML Usage<\/h2>\n\n\n\n<p><strong>list of XML usage says it all<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>XML can work behind the scene to simplify the creation of HTML documents for large web sites.<\/li>\n\n\n\n<li>XML can be used to exchange the information between organizations and systems.<\/li>\n\n\n\n<li>XML can be used for offloading and reloading of databases.<\/li>\n\n\n\n<li>XML can be used to store and arrange the data, which can customize your data handling needs.<\/li>\n\n\n\n<li>XML can easily be merged with style sheets to create almost any desired output.Virtually, any type of data can be expressed as an XML document.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">The Difference between XML and HTML<\/h3>\n\n\n\n<p>XML and HTML were designed with different goals<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>XML was designed to carry data &#8211; with focus on what data is<\/li>\n\n\n\n<li>HTML was designed to display data &#8211; with focus on how data looks<\/li>\n\n\n\n<li>XML tags are not predefined like HTML tags<\/li>\n\n\n\n<li>XML documents form a tree structure that starts at &#8220;the root&#8221; and branches to &#8220;the leaves .<\/li>\n<\/ul>\n\n\n\n<p><strong>XML Syntax<\/strong><\/p>\n\n\n\n<p>Following is a complete XML document:-<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\"?>\r\n&lt;contact_info>\r\n&lt;name>Rajesh&lt;\/name>\r\n&lt;company>TCS&lt;\/company>\r\n&lt;phone>9333332354&lt;\/phone>\r\n&lt;\/contact_info><\/code><\/pre>\n\n\n\n<p>You can notice there are two kinds of information in the above example.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>markup, like and<\/li>\n\n\n\n<li>the text, like Rajesh etc.<\/li>\n<\/ul>\n\n\n\n<p>The following diagram depicts the syntax rules to write different types of markup and text in an XML document.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"519\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-52.png\" alt=\"\" class=\"wp-image-191\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-52.png 796w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-52-300x196.png 300w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/Screenshot-52-768x501.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>XML stands for Extensible Markup Language.It was designed to store and transport data, making it a versatile tool for exchanging information between different systems. Think of it as a filing system for information, where everything has a designated place and label.XML is designed to transport and store data efficiently. It&#8217;s widely used for various purposes, &#8230; <a title=\"what is xml ?\" class=\"read-more\" href=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\" aria-label=\"Read more about what is xml ?\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-what-is-xml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>what is xml ? - XOps Tutorials!!!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"what is xml ? - XOps Tutorials!!!\" \/>\n<meta property=\"og:description\" content=\"XML stands for Extensible Markup Language.It was designed to store and transport data, making it a versatile tool for exchanging information between different systems. Think of it as a filing system for information, where everything has a designated place and label.XML is designed to transport and store data efficiently. It&#8217;s widely used for various purposes, ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\" \/>\n<meta property=\"og:site_name\" content=\"XOps Tutorials!!!\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-29T16:42:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-29T16:44:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png\" \/>\n<meta name=\"author\" content=\"ritik hansda\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ritik hansda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\"},\"author\":{\"name\":\"ritik hansda\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"headline\":\"what is xml ?\",\"datePublished\":\"2024-02-29T16:42:19+00:00\",\"dateModified\":\"2024-02-29T16:44:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\"},\"wordCount\":391,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png\",\"articleSection\":[\"What is XML\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\",\"name\":\"what is xml ? - XOps Tutorials!!!\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png\",\"datePublished\":\"2024-02-29T16:42:19+00:00\",\"dateModified\":\"2024-02-29T16:44:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png\",\"contentUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png\",\"width\":900,\"height\":385},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.xopsschool.com\/tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"what is xml ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/\",\"name\":\"XOps Tutorials!!!\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\",\"name\":\"ritik hansda\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g\",\"caption\":\"ritik hansda\"},\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/author\/ritikhansda\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"what is xml ? - XOps Tutorials!!!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/","og_locale":"en_US","og_type":"article","og_title":"what is xml ? - XOps Tutorials!!!","og_description":"XML stands for Extensible Markup Language.It was designed to store and transport data, making it a versatile tool for exchanging information between different systems. Think of it as a filing system for information, where everything has a designated place and label.XML is designed to transport and store data efficiently. It&#8217;s widely used for various purposes, ... Read more","og_url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/","og_site_name":"XOps Tutorials!!!","article_published_time":"2024-02-29T16:42:19+00:00","article_modified_time":"2024-02-29T16:44:13+00:00","og_image":[{"url":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png","type":"","width":"","height":""}],"author":"ritik hansda","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ritik hansda","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#article","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/"},"author":{"name":"ritik hansda","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"headline":"what is xml ?","datePublished":"2024-02-29T16:42:19+00:00","dateModified":"2024-02-29T16:44:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/"},"wordCount":391,"commentCount":0,"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png","articleSection":["What is XML"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/","url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/","name":"what is xml ? - XOps Tutorials!!!","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage"},"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png","datePublished":"2024-02-29T16:42:19+00:00","dateModified":"2024-02-29T16:44:13+00:00","author":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"breadcrumb":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#primaryimage","url":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png","contentUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/02\/XML.png","width":900,"height":385},{"@type":"BreadcrumbList","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.xopsschool.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"what is xml ?"}]},{"@type":"WebSite","@id":"https:\/\/www.xopsschool.com\/tutorials\/#website","url":"https:\/\/www.xopsschool.com\/tutorials\/","name":"XOps Tutorials!!!","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7","name":"ritik hansda","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g","caption":"ritik hansda"},"url":"https:\/\/www.xopsschool.com\/tutorials\/author\/ritikhansda\/"}]}},"_links":{"self":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":1,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/189\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}