

{"id":74,"date":"2026-06-01T00:23:52","date_gmt":"2026-06-01T00:23:52","guid":{"rendered":"https:\/\/apropostechsolutionscorp.ca\/blog\/?p=74"},"modified":"2026-06-02T18:45:03","modified_gmt":"2026-06-02T18:45:03","slug":"formats-xml","status":"publish","type":"post","link":"https:\/\/apropostechsolutionscorp.ca\/blog\/2026\/06\/01\/formats-xml\/","title":{"rendered":"Formats: XML"},"content":{"rendered":"\n<h2>What is XML? It&#8217;s a document format.<\/h2>\n<p>\nThe following is how I understand it.<\/p>\n<p>\nXML is used to format documents that need to impart specific information. Somewhat like html, XML places the information between tags that classify it.<\/p>\n<p>\nAn XML document will typically start with a document declaration such as &lt;?xml version=\u20181.0\u2019 encoding=\u2018UTF-8\u2019?&gt;. For that declaration only, the question marks serve to nest it.<\/p>\n<p>\nNext, the XML document needs what&#8217;s called a root element. All other elements will appear within the root element. The root element must be unique at that level; there can&#8217;t be two.<\/p>\n<p>\nFinally, each element, including the root, must have an opening and closing tag. Tags can be nested. An opening tag and closing tag look like this:<\/p>\n<p>\n&lt;mood_tag&gt;happy&lt;\/mood_tag&gt;<\/p>\n<p>\nSo, a very simple xml document might be like so:<\/p>\n<p>\n&lt;?xml version=\u20181.0\u2019 encoding=\u2018UTF-8\u2019?&gt;\n<\/p>\n<p>&lt;the_root&gt;\n<\/p>\n<p>&lt;an_element&gt;Element1&lt;\/an_element&gt;<\/p>\n<p>\n&lt;another_element&gt;Element2&lt;\/another_element&gt;\n<\/p>\n<p>\n&lt;\/the_root&gt;\n<\/p>\n<p>\nXML code can be checked for following the rules (aka validated) at the site <a href=\"https:\/\/jsonformatter.org\/xml-validator\">JSON formatter: XML Validator<\/a>.<\/p>\n<p>\nSource:<\/p>\n<p><a href=\"https:\/\/www.ibm.com\/docs\/en\/b2bis?topic=overview-xml-syntax-rules\">ibm.com: XML Syntax Rules<\/a><\/p>\n<p><a href=\"https:\/\/apropostechsolutionscorp.ca\/blog\/\">-JS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is XML? It&#8217;s a document format. The following is how I understand it. XML is used to format documents that need to impart specific information. Somewhat like html, XML places the information between tags that classify it. An XML document will typically start with a document declaration such as &lt;?xml version=\u20181.0\u2019 encoding=\u2018UTF-8\u2019?&gt;. For that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,21],"tags":[22],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-document-types","category-formats","tag-xml"],"_links":{"self":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":16,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}