{"id":32926,"date":"2016-08-03T01:21:58","date_gmt":"2016-08-03T01:21:58","guid":{"rendered":"http:\/\/rkenny.org\/?p=32926"},"modified":"2016-09-14T02:31:31","modified_gmt":"2016-09-14T02:31:31","slug":"eme6207-xml","status":"publish","type":"post","link":"https:\/\/emeclasses.org\/?p=32926","title":{"rendered":"EME 6207 &#8211; Tech Ed: xml Explained"},"content":{"rendered":"<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#004d4d;border-radius:3px;\"><div class=\"su-box-title\" style=\"background-color:#008080;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Textbook Reference(s):<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"><\/p>\n<p><span style=\"color: #800000;\"><strong>N\/A<\/strong><\/span><\/div><\/div>\n<hr \/>\n<hr \/>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>So we have another short overview of xml for you to look at:<br \/>\n<div class=\"su-divider su-divider-style-default\" style=\"margin:15px 0;border-width:3px;border-color:#999999\"><\/div><br \/>\n<script type='text\/javascript' src='https:\/\/emeclasses.org\/wp-content\/plugins\/hana-flv-player\/flowplayer3\/example\/flowplayer-3.2.6.min.js'><\/script>\n<div >\n<div id='hana_flv_flow3_1' style='display:block;width:400px;height:320px;background-color:#555555;color:#ffffff;padding:0' title=\"\"><\/div>\n<\/div>\n\n<script  type='text\/javascript'>\nif (typeof g_hanaFlash !== 'undefined' && !g_hanaFlash){\n    jQuery('#hana_flv_flow3_1').css( 'padding', '5px' );\n\tjQuery('#hana_flv_flow3_1').html(\"<span class='inactive_message' style='display:block'>Sorry, your browser does not support Flash Video Player<\/span> \");\n}else{\t\t\t\n\t\tflowplayer('hana_flv_flow3_1', { src: 'https:\/\/emeclasses.org\/wp-content\/plugins\/hana-flv-player\/flowplayer3\/flowplayer-3.2.7.swf', wmode: 'transparent' }, { \n\n\t\t\tcanvas: { backgroundColor: '#000000', backgroundGradient: 'none',},\n    \t\tclip:  { \n    \t\t\turl: 'http:\/\/rkenny.org\/6207\/xml_primer.flv',\n        \t\tscaling: 'scale', autoPlay: false, autoBuffering: true \n\t\t\t\t   , onFinish : function () { this.seek(0); }  \n\n\t        }\n\n\t\t});\n}\n<\/script><br \/>\n<div class=\"su-divider su-divider-style-default\" style=\"margin:15px 0;border-width:3px;border-color:#999999\"><\/div><\/p>\n<h2>What is XML you ask? (confused? no worries..)<\/h2>\n<p>XML was designed to transport and store data.<\/p>\n<p>HTML was designed to display data.<\/p>\n<p>Before you continue you should have a basic understanding of the following:<\/p>\n<ul>\n<li><a href=\"\/?p=32809\"><strong>HTML<\/strong><\/a><\/li>\n<li><a href=\"\/?p=32803\"><strong>JavaScript<\/strong><\/a><\/li>\n<\/ul>\n<h3>What is XML?<\/h3>\n<ul>\n<li>XML stands for E<strong>X<\/strong>tensible <strong>M<\/strong>arkup <strong>L<\/strong>anguage<\/li>\n<li>XML is a markup language much like HTML<\/li>\n<li>XML was designed to carry data, not to display data<\/li>\n<li>XML tags are not predefined. You must define your own tags<\/li>\n<li>XML is designed to be self-descriptive<\/li>\n<li>XML is a W3C Recommendation<\/li>\n<\/ul>\n<p>The Difference Between XML and HTML<\/p>\n<p>XML is not a replacement for HTML.<\/p>\n<h3>XML and HTML were designed with different goals:<\/h3>\n<ul>\n<li>XML was designed to transport and store data, with focus on what data is.<\/li>\n<li>HTML was designed to display data, with focus on how data looks.<\/li>\n<\/ul>\n<p>HTML is about displaying information, while XML is about carrying information.<\/p>\n<h3>XML Does not DO Anything<\/h3>\n<p>Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information (content).<\/p>\n<p>The following example is a note to Tove from Jani, stored as XML<\/p>\n<pre>&lt;note&gt;\r\n  &lt;to&gt;Romeo&lt;\/to&gt;\r\n  &lt;from&gt;Juliet&lt;\/from&gt;\r\n  &lt;subject&gt;wherefore art thou&lt;\/subject&gt;\r\n  &lt;body&gt;Deny thy father and refuse thy name&lt;\/body&gt; \r\n&lt;\/note&gt;<\/pre>\n<p>But still, this XML document does not DO anything. It is just pure information wrapped in tags. Someone must write a piece of software to send, receive, and\/ or display it. (again that code is describe\/defined in the database on the other end).The note above is quite self descriptive. The xml tags <code>&lt;from&gt; &lt;to&gt;<\/code> etc, simply added context and meaning to the data, which I describe through what I do with that data on my server side data base system (mysql + php). It has sender and receiver information, it also has a heading and a message body.<\/p>\n<h3>In other words&#8230; XML is Just Plain Text<\/h3>\n<p>XML is nothing special. It is just plain text. Software that can handle plain text can also handle XML.<\/p>\n<p>However, XML-aware applications can handle the XML tags specially. The functional meaning of the tags depends on the nature of the application.<\/p>\n<h3>With XML You Invent Your Own Tags<\/h3>\n<p>The tags in the example above (like and ) are not defined in any XML standard. These tags are &#8220;invented&#8221; by the author of the XML document.<\/p>\n<p>That is because the XML language has no predefined tags.<\/p>\n<p>The tags used in HTML (and the structure of HTML) are predefined. HTML documents can only use tags defined in the HTML standard (like \/p, p,\/p h1, etc.).<\/p>\n<p>XML allows the author to define his own tags and his own document structure.<\/p>\n<p>XML is Not a Replacement for HTML<\/p>\n<p>XML is a complement to HTML<\/p>\n<p>It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to <u>transport<\/u> and <u>define<\/u> data, while HTML is used to <u>format<\/u> and <u>display<\/u> the data.<\/p>\n<p>My best description of XML is this:<\/p>\n<p><strong>XML is a software- and hardware-independent tool for carrying information.<\/strong><\/p>\n<h3>XML is a <a href=\"http:\/\/en.wikipedia.org\/wiki\/World_Wide_Web_Consortium\" target=\"_blank\"><strong>W3C Recommendation<\/strong><\/a><\/h3>\n<p>XML became a W3C Recommendation in February, 1998.<\/p>\n<h3>XML is Everywhere<\/h3>\n<ul>\n<li>We have been participating in XML development since its creation. It has been amazing to see how quickly the XML standard has developed, and how quickly a large number of software vendors has adopted the standard.<\/li>\n<li>XML is now as important for the Web (<strong>especially the social Web<\/strong>)as HTML was to the foundation of the Web.<\/li>\n<li>XML is the most common tool for data transmission between all sorts of applications, and is becoming more and more popular in the area of <u>storing<\/u> and <u>describing<\/u> information.<\/li>\n<\/ul>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#0033cc;border-radius:3px;\"><div class=\"su-box-title\" style=\"background-color:#3366ff;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Do This:<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"><\/p>\n<p><a href=\"http:\/\/emeclasses.org\/wp-content\/uploads\/2013\/06\/dothis.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37098\" src=\"http:\/\/emeclasses.org\/wp-content\/uploads\/2013\/06\/dothis.gif\" alt=\"dothis\" width=\"60\" height=\"48\" \/><\/a><\/p>\n<p>The last item on the list for this learning cycle is to read more about XML and follow a short tutorial found at <a href=\"http:\/\/www.w3schools.com\/xml\/xml_whatis.asp\" target=\"_blank\">W3C Schools<\/a> and take their short self-study quiz.<\/p>\n<p>After, we should be ready for the next cycle where we introduce content management systems&#8230; most of which are based on php and xml.<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; So we have another short overview of xml for you to look at: What is XML you ask? (confused? no worries..) XML was designed to transport and store data. HTML was designed to display data. Before you continue you should have a basic understanding of the following: HTML JavaScript What is XML? XML stands [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[96],"tags":[],"class_list":["post-32926","post","type-post","status-publish","format-standard","hentry","category-tech-ed-6207"],"_links":{"self":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32926"}],"version-history":[{"count":7,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32926\/revisions"}],"predecessor-version":[{"id":40299,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32926\/revisions\/40299"}],"wp:attachment":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}