title: How I can create a Chrome extension that reads an xml or json
body: <p>I tried to schedule a google chrome extension that I only pull one json or xml to display content from my website. But I could not do this task might say some example of code to perform this task. I will be greatly thankful</p>
  
  <p>Here's an example of how to configure my manifest.json</p>
  
  <pre><code>{
     "manifest_version": 2,
     "name": "Name",
     "description": "My WEB SITE DESCRIPTION."
     "version": "1.0",
  
     "browser_action": {
       "default_icon": "icon.png",
       "default_popup": "popup.html"
     }
     "permissions": [
       "http://domain.com/"
     ]
  }
  </code></pre>
  
  <p>And as I try to get a XML (if they know how I can achieve a JSON will be equally useful):</p>
  
  <pre><code>window.addEventListener("load", function inicial(){
           xmlhttp.open("GET", "http://domain.com/feed", false); 
           xmlhttp.send(null);
           if (xmlhttp.status==200) {
                       xmlDoc = xmlhttp.responseXML; 
                       var links = xmlDoc.getElementsByTagName("link"); 
                       alert(links);
            } else if (xmlhttp.status==404) {
                 alert("XML could not be found");
            }
  });
  </code></pre>
  
  <p>Greetings.</p>