{"id":730,"date":"2012-01-20T01:37:45","date_gmt":"2012-01-20T07:37:45","guid":{"rendered":"https:\/\/daedtech.wpenginepowered.com\/?p=730"},"modified":"2012-01-20T01:37:45","modified_gmt":"2012-01-20T07:37:45","slug":"compiling-xml-not-really","status":"publish","type":"post","link":"https:\/\/daedtech.com\/compiling-xml-not-really\/","title":{"rendered":"Compiling XML! (Not really)"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.inquisitr.com\/wp-content\/wat.jpg\" alt=\"\" \/><\/p>\n<p>So, here&#8217;s another one filed in the &#8220;hope this saves someone some grief&#8221; category.  I was cruising along with my home automation &#8216;droid app, setting my layouts and wiring up my button click handlers, when all of a sudden, I was getting weird build errors about.  I couldn&#8217;t run or even build.  When I tried to build, I got messages about different things being redefined in my main XML layout file.  This was strange, since I hadn&#8217;t edited it directly, but was using the graphical layout tool.<\/p>\n<p>As I inspected the errors more closely, I began to understand that there was apparently some rogue XML somewhere.  A bug in Eclipse?  With the Android SDK plugin?  Had I been hacked by someone with a very strange set of motives?  I opened up my layout folder and this is what I saw:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/daedtech.com\/pics\/badxml.jpg\" alt=\"\" \/><\/p>\n<p>Wat?<\/p>\n<p>After some googling around and experimentation, I discovered that this file is generated if you run with the Play icon and the XML file open as your selected window in the editor.  Perhaps that&#8217;s something that Eclipse users are used to, but coming from a pretty solid couple of years of Visual Studio, this had me mystified.  So, lesson learned.  Don&#8217;t run if you have XML open in Eclipse (or anything else you don&#8217;t want slapped with a .out between filename and extension and apparently included in compilation.<\/p>\n<p>Cheers \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, here&#8217;s another one filed in the &#8220;hope this saves someone some grief&#8221; category. I was cruising along with my home automation &#8216;droid app, setting my layouts and wiring up my button click handlers, when all of a sudden, I was getting weird build errors about. I couldn&#8217;t run or even build. When I tried&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[47],"tags":[6,31],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-lessons-learned","tag-android","tag-eclipse"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Compiling XML! (Not really) - DaedTech<\/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:\/\/daedtech.com\/compiling-xml-not-really\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Compiling XML! (Not really) - DaedTech\" \/>\n<meta name=\"twitter:description\" content=\"So, here&#8217;s another one filed in the &#8220;hope this saves someone some grief&#8221; category. I was cruising along with my home automation &#8216;droid app, setting my layouts and wiring up my button click handlers, when all of a sudden, I was getting weird build errors about. I couldn&#8217;t run or even build. When I tried...\" \/>\n<meta name=\"twitter:image\" content=\"http:\/\/www.inquisitr.com\/wp-content\/wat.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Erik Dietrich\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/\"},\"author\":{\"name\":\"Erik Dietrich\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/#\\\/schema\\\/person\\\/3dae63e91a0fa60c8051a2171fa687d2\"},\"headline\":\"Compiling XML! (Not really)\",\"datePublished\":\"2012-01-20T07:37:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/\"},\"wordCount\":240,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.inquisitr.com\\\/wp-content\\\/wat.jpg\",\"keywords\":[\"Android\",\"Eclipse\"],\"articleSection\":[\"Lessons Learned\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/\",\"url\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/\",\"name\":\"Compiling XML! (Not really) - DaedTech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.inquisitr.com\\\/wp-content\\\/wat.jpg\",\"datePublished\":\"2012-01-20T07:37:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.inquisitr.com\\\/wp-content\\\/wat.jpg\",\"contentUrl\":\"http:\\\/\\\/www.inquisitr.com\\\/wp-content\\\/wat.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/compiling-xml-not-really\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/daedtech.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compiling XML! (Not really)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/#website\",\"url\":\"https:\\\/\\\/daedtech.com\\\/\",\"name\":\"DaedTech\",\"description\":\"Stories about Software\",\"publisher\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/daedtech.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/#organization\",\"name\":\"DaedTech LLC\",\"url\":\"https:\\\/\\\/daedtech.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/daedtech.com\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/SmallLogo.jpg\",\"contentUrl\":\"https:\\\/\\\/daedtech.com\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/SmallLogo.jpg\",\"width\":82,\"height\":84,\"caption\":\"DaedTech LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/daedtech.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/daedtech.com\\\/#\\\/schema\\\/person\\\/3dae63e91a0fa60c8051a2171fa687d2\",\"name\":\"Erik Dietrich\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/691ca004bd18f464e9467b2f838e8fbc7a9a2c9eb8568b04a834ac653f3ab1d7?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/691ca004bd18f464e9467b2f838e8fbc7a9a2c9eb8568b04a834ac653f3ab1d7?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/691ca004bd18f464e9467b2f838e8fbc7a9a2c9eb8568b04a834ac653f3ab1d7?s=96&d=wavatar&r=pg\",\"caption\":\"Erik Dietrich\"},\"sameAs\":[\"https:\\\/\\\/daedtech.com\"],\"url\":\"https:\\\/\\\/daedtech.com\\\/author\\\/erik\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Compiling XML! (Not really) - DaedTech","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:\/\/daedtech.com\/compiling-xml-not-really\/","twitter_card":"summary_large_image","twitter_title":"Compiling XML! (Not really) - DaedTech","twitter_description":"So, here&#8217;s another one filed in the &#8220;hope this saves someone some grief&#8221; category. I was cruising along with my home automation &#8216;droid app, setting my layouts and wiring up my button click handlers, when all of a sudden, I was getting weird build errors about. I couldn&#8217;t run or even build. When I tried...","twitter_image":"http:\/\/www.inquisitr.com\/wp-content\/wat.jpg","twitter_misc":{"Written by":"Erik Dietrich","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#article","isPartOf":{"@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/"},"author":{"name":"Erik Dietrich","@id":"https:\/\/daedtech.com\/#\/schema\/person\/3dae63e91a0fa60c8051a2171fa687d2"},"headline":"Compiling XML! (Not really)","datePublished":"2012-01-20T07:37:45+00:00","mainEntityOfPage":{"@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/"},"wordCount":240,"commentCount":0,"publisher":{"@id":"https:\/\/daedtech.com\/#organization"},"image":{"@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#primaryimage"},"thumbnailUrl":"http:\/\/www.inquisitr.com\/wp-content\/wat.jpg","keywords":["Android","Eclipse"],"articleSection":["Lessons Learned"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/daedtech.com\/compiling-xml-not-really\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/","url":"https:\/\/daedtech.com\/compiling-xml-not-really\/","name":"Compiling XML! (Not really) - DaedTech","isPartOf":{"@id":"https:\/\/daedtech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#primaryimage"},"image":{"@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#primaryimage"},"thumbnailUrl":"http:\/\/www.inquisitr.com\/wp-content\/wat.jpg","datePublished":"2012-01-20T07:37:45+00:00","breadcrumb":{"@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/daedtech.com\/compiling-xml-not-really\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#primaryimage","url":"http:\/\/www.inquisitr.com\/wp-content\/wat.jpg","contentUrl":"http:\/\/www.inquisitr.com\/wp-content\/wat.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/daedtech.com\/compiling-xml-not-really\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/daedtech.com\/"},{"@type":"ListItem","position":2,"name":"Compiling XML! (Not really)"}]},{"@type":"WebSite","@id":"https:\/\/daedtech.com\/#website","url":"https:\/\/daedtech.com\/","name":"DaedTech","description":"Stories about Software","publisher":{"@id":"https:\/\/daedtech.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/daedtech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/daedtech.com\/#organization","name":"DaedTech LLC","url":"https:\/\/daedtech.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/daedtech.com\/#\/schema\/logo\/image\/","url":"https:\/\/daedtech.com\/wp-content\/uploads\/2015\/07\/SmallLogo.jpg","contentUrl":"https:\/\/daedtech.com\/wp-content\/uploads\/2015\/07\/SmallLogo.jpg","width":82,"height":84,"caption":"DaedTech LLC"},"image":{"@id":"https:\/\/daedtech.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/daedtech.com\/#\/schema\/person\/3dae63e91a0fa60c8051a2171fa687d2","name":"Erik Dietrich","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/691ca004bd18f464e9467b2f838e8fbc7a9a2c9eb8568b04a834ac653f3ab1d7?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/691ca004bd18f464e9467b2f838e8fbc7a9a2c9eb8568b04a834ac653f3ab1d7?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/691ca004bd18f464e9467b2f838e8fbc7a9a2c9eb8568b04a834ac653f3ab1d7?s=96&d=wavatar&r=pg","caption":"Erik Dietrich"},"sameAs":["https:\/\/daedtech.com"],"url":"https:\/\/daedtech.com\/author\/erik\/"}]}},"_links":{"self":[{"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/comments?post=730"}],"version-history":[{"count":0,"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/posts\/730\/revisions"}],"wp:attachment":[{"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/media?parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/categories?post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daedtech.com\/wp-json\/wp\/v2\/tags?post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}