{"id":103,"date":"2024-02-08T17:16:09","date_gmt":"2024-02-08T17:16:09","guid":{"rendered":"https:\/\/www.xopsschool.com\/tutorials\/?p=103"},"modified":"2024-02-29T18:20:09","modified_gmt":"2024-02-29T18:20:09","slug":"what-is-xml","status":"publish","type":"post","link":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/","title":{"rendered":"What is Xml ?"},"content":{"rendered":"\n<p>XML stands for eXtensible Markup Language. It&#8217;s a simple and flexible text-based format used to store and transport data. In easy language, you can think of XML as a way to organize information in a structured manner. In XML, data is enclosed in tags, which are like labels or markers that define the beginning and end of elements. These elements can contain text, other elements, or attributes that provide additional information about the data.<\/p>\n\n\n\n<p><strong>How can XML be Used ?<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create an XML Documen<\/strong>t :- Start with a root element, like , to wrap around all your information. Inside the root, add other elements to represent different pieces of data.<\/li>\n\n\n\n<li><strong>Use Tags for Data:<\/strong>&#8211;  Each piece of information is enclosed in a tag. For example, and are tags. Open and close each tag to define the beginning and end of the data.<br><\/li>\n\n\n\n<li><strong>Nesting Elements:-<\/strong>  You can nest elements inside each other to show relationships. For instance, elements are nested inside the element.<\/li>\n<\/ol>\n\n\n\n<p>     4. <strong>Add Attributes:-<\/strong> If an element needs additional details, use attributes. These go inside the opening   tag.<\/p>\n\n\n\n<p>   5. <strong>Save as Xml:-<\/strong> Once you&#8217;ve created your XML, save it with a .xml file extension (e.g., mydata.xml).<\/p>\n\n\n\n<p>  6. <strong>Read Xml : &#8211;<\/strong>  Other programs or systems can read your XML to understand the data structure.<br>For example, a program might read the XML to know there are people with names and ages.<\/p>\n\n\n\n<p> <strong> Explain  Code :-<\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;bookstore&gt;\n\n  &lt;book category=\"cooking\"&gt;\n    &lt;title lang=\"en\"&gt;Everyday Italian&lt;\/title&gt;\n    &lt;author&gt;Giada De Laurentiis&lt;\/author&gt;\n    &lt;year&gt;2005&lt;\/year&gt;\n    &lt;price&gt;30.00&lt;\/price&gt;\n  &lt;\/book&gt;\n\n  &lt;book category=\"children\"&gt;\n    &lt;title lang=\"en\"&gt;Harry Potter&lt;\/title&gt;\n    &lt;author&gt;J K. Rowling&lt;\/author&gt;\n    &lt;year&gt;2005&lt;\/year&gt;\n    &lt;price&gt;29.99&lt;\/price&gt;\n  &lt;\/book&gt;\n\n  &lt;book category=\"web\"&gt;\n    &lt;title lang=\"en\"&gt;XQuery Kick Start&lt;\/title&gt;\n    &lt;author&gt;James McGovern&lt;\/author&gt;\n    &lt;author&gt;Per Bothner&lt;\/author&gt;\n    &lt;author&gt;Kurt Cagle&lt;\/author&gt;\n    &lt;author&gt;James Linn&lt;\/author&gt;\n    &lt;author&gt;Vaidyanathan Nagarajan&lt;\/author&gt;\n    &lt;year&gt;2003&lt;\/year&gt;\n    &lt;price&gt;49.99&lt;\/price&gt;\n  &lt;\/book&gt;\n\n  &lt;book category=\"web\" cover=\"paperback\"&gt;\n    &lt;title lang=\"en\"&gt;Learning XML&lt;\/title&gt;\n    &lt;author&gt;Erik T. Ray&lt;\/author&gt;\n    &lt;year&gt;2003&lt;\/year&gt;\n    &lt;price&gt;39.95&lt;\/price&gt;\n  &lt;\/book&gt;\n\n&lt;\/bookstore&gt;<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>XML stands for eXtensible Markup Language. It&#8217;s a simple and flexible text-based format used to store and transport data. In easy language, you can think of XML as a way to organize information in a structured manner. In XML, data is enclosed in tags, which are like labels or markers that define the beginning and &#8230; <a title=\"What is Xml ?\" class=\"read-more\" href=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\" 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-103","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\/\" \/>\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&#8217;s a simple and flexible text-based format used to store and transport data. In easy language, you can think of XML as a way to organize information in a structured manner. In XML, data is enclosed in tags, which are like labels or markers that define the beginning and ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\" \/>\n<meta property=\"og:site_name\" content=\"XOps Tutorials!!!\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-08T17:16:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-29T18:20:09+00:00\" \/>\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\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\"},\"author\":{\"name\":\"ritik hansda\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"headline\":\"What is Xml ?\",\"datePublished\":\"2024-02-08T17:16:09+00:00\",\"dateModified\":\"2024-02-29T18:20:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\"},\"wordCount\":239,\"commentCount\":0,\"articleSection\":[\"What is XML\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\",\"name\":\"What is Xml ? - XOps Tutorials!!!\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\"},\"datePublished\":\"2024-02-08T17:16:09+00:00\",\"dateModified\":\"2024-02-29T18:20:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/#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\/","og_locale":"en_US","og_type":"article","og_title":"What is Xml ? - XOps Tutorials!!!","og_description":"XML stands for eXtensible Markup Language. It&#8217;s a simple and flexible text-based format used to store and transport data. In easy language, you can think of XML as a way to organize information in a structured manner. In XML, data is enclosed in tags, which are like labels or markers that define the beginning and ... Read more","og_url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/","og_site_name":"XOps Tutorials!!!","article_published_time":"2024-02-08T17:16:09+00:00","article_modified_time":"2024-02-29T18:20:09+00:00","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\/#article","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/"},"author":{"name":"ritik hansda","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"headline":"What is Xml ?","datePublished":"2024-02-08T17:16:09+00:00","dateModified":"2024-02-29T18:20:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/"},"wordCount":239,"commentCount":0,"articleSection":["What is XML"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/","url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/","name":"What is Xml ? - XOps Tutorials!!!","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#website"},"datePublished":"2024-02-08T17:16:09+00:00","dateModified":"2024-02-29T18:20:09+00:00","author":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"breadcrumb":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-xml\/#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\/103","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=103"}],"version-history":[{"count":2,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/103\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}