{"action":"created","comment":{"url":"https://api.github.com/repos/MaKleSoft/padlock/pulls/comments/63758174","id":63758174,"diff_hunk":"@@ -250,6 +250,69 @@ padlock.import = (function(crypto, DisposableSource, Papa) {\n         return data.split(\"\\n\")[0] == \"url,username,password,extra,name,grouping,fav\";\n     }\n \n+    /**\n+     * Checks if a given string represents a KeePassX exported XML file\n+     */\n+    function isKeePassXML(xmldata) {\n+        return xmldata.split(\"\\n\")[0] == \"<!DOCTYPE KEEPASSX_DATABASE>\";\n+    }\n+\n+    /**\n+     * Imports data from the XML file exported by KeePassX\n+     */\n+     function importKeePassXML(xmldata) {\n+\n+         // parse the xmldata string into actual XML format\n+         parser = new DOMParser();\n+         xmlDoc = parser.parseFromString(xmldata,\"text/xml\");","path":"src/import.js","position":18,"original_position":18,"commit_id":"6b6ea0d0167932f24a686261758da6ade06743fa","original_commit_id":"6b6ea0d0167932f24a686261758da6ade06743fa","user":{"login":"MaKleSoft","id":1270940,"avatar_url":"https://avatars.githubusercontent.com/u/1270940?v=3","gravatar_id":"","url":"https://api.github.com/users/MaKleSoft","html_url":"https://github.com/MaKleSoft","followers_url":"https://api.github.com/users/MaKleSoft/followers","following_url":"https://api.github.com/users/MaKleSoft/following{/other_user}","gists_url":"https://api.github.com/users/MaKleSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKleSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKleSoft/subscriptions","organizations_url":"https://api.github.com/users/MaKleSoft/orgs","repos_url":"https://api.github.com/users/MaKleSoft/repos","events_url":"https://api.github.com/users/MaKleSoft/events{/privacy}","received_events_url":"https://api.github.com/users/MaKleSoft/received_events","type":"User","site_admin":false},"body":"This line also misses a `var` btw.","created_at":"2016-05-18T18:38:14Z","updated_at":"2016-05-18T18:38:14Z","html_url":"https://github.com/MaKleSoft/padlock/pull/42#discussion_r63758174","pull_request_url":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/MaKleSoft/padlock/pulls/comments/63758174"},"html":{"href":"https://github.com/MaKleSoft/padlock/pull/42#discussion_r63758174"},"pull_request":{"href":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42","id":70442802,"html_url":"https://github.com/MaKleSoft/padlock/pull/42","diff_url":"https://github.com/MaKleSoft/padlock/pull/42.diff","patch_url":"https://github.com/MaKleSoft/padlock/pull/42.patch","issue_url":"https://api.github.com/repos/MaKleSoft/padlock/issues/42","number":42,"state":"open","locked":false,"title":"Adding KeePassX XML import option","user":{"login":"bhavesh-k","id":7852169,"avatar_url":"https://avatars.githubusercontent.com/u/7852169?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavesh-k","html_url":"https://github.com/bhavesh-k","followers_url":"https://api.github.com/users/bhavesh-k/followers","following_url":"https://api.github.com/users/bhavesh-k/following{/other_user}","gists_url":"https://api.github.com/users/bhavesh-k/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavesh-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavesh-k/subscriptions","organizations_url":"https://api.github.com/users/bhavesh-k/orgs","repos_url":"https://api.github.com/users/bhavesh-k/repos","events_url":"https://api.github.com/users/bhavesh-k/events{/privacy}","received_events_url":"https://api.github.com/users/bhavesh-k/received_events","type":"User","site_admin":false},"body":"KeePassX password manager allows the user to export their database as an XML file. Functions have been added to allow a user to migrate from KeePassX by importing the XML database into Padlock.","created_at":"2016-05-17T22:39:13Z","updated_at":"2016-05-18T18:38:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"240bf66d643cb26cf3e2348e4d355360acdc7309","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42/commits","review_comments_url":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42/comments","review_comment_url":"https://api.github.com/repos/MaKleSoft/padlock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaKleSoft/padlock/issues/42/comments","statuses_url":"https://api.github.com/repos/MaKleSoft/padlock/statuses/6b6ea0d0167932f24a686261758da6ade06743fa","head":{"label":"bhavesh-k:keepassx_integration","ref":"keepassx_integration","sha":"6b6ea0d0167932f24a686261758da6ade06743fa","user":{"login":"bhavesh-k","id":7852169,"avatar_url":"https://avatars.githubusercontent.com/u/7852169?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavesh-k","html_url":"https://github.com/bhavesh-k","followers_url":"https://api.github.com/users/bhavesh-k/followers","following_url":"https://api.github.com/users/bhavesh-k/following{/other_user}","gists_url":"https://api.github.com/users/bhavesh-k/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavesh-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavesh-k/subscriptions","organizations_url":"https://api.github.com/users/bhavesh-k/orgs","repos_url":"https://api.github.com/users/bhavesh-k/repos","events_url":"https://api.github.com/users/bhavesh-k/events{/privacy}","received_events_url":"https://api.github.com/users/bhavesh-k/received_events","type":"User","site_admin":false},"repo":{"id":58965001,"name":"padlock","full_name":"bhavesh-k/padlock","owner":{"login":"bhavesh-k","id":7852169,"avatar_url":"https://avatars.githubusercontent.com/u/7852169?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavesh-k","html_url":"https://github.com/bhavesh-k","followers_url":"https://api.github.com/users/bhavesh-k/followers","following_url":"https://api.github.com/users/bhavesh-k/following{/other_user}","gists_url":"https://api.github.com/users/bhavesh-k/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavesh-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavesh-k/subscriptions","organizations_url":"https://api.github.com/users/bhavesh-k/orgs","repos_url":"https://api.github.com/users/bhavesh-k/repos","events_url":"https://api.github.com/users/bhavesh-k/events{/privacy}","received_events_url":"https://api.github.com/users/bhavesh-k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhavesh-k/padlock","description":"A minimalist open source password manager.","fork":true,"url":"https://api.github.com/repos/bhavesh-k/padlock","forks_url":"https://api.github.com/repos/bhavesh-k/padlock/forks","keys_url":"https://api.github.com/repos/bhavesh-k/padlock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhavesh-k/padlock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhavesh-k/padlock/teams","hooks_url":"https://api.github.com/repos/bhavesh-k/padlock/hooks","issue_events_url":"https://api.github.com/repos/bhavesh-k/padlock/issues/events{/number}","events_url":"https://api.github.com/repos/bhavesh-k/padlock/events","assignees_url":"https://api.github.com/repos/bhavesh-k/padlock/assignees{/user}","branches_url":"https://api.github.com/repos/bhavesh-k/padlock/branches{/branch}","tags_url":"https://api.github.com/repos/bhavesh-k/padlock/tags","blobs_url":"https://api.github.com/repos/bhavesh-k/padlock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhavesh-k/padlock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhavesh-k/padlock/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhavesh-k/padlock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhavesh-k/padlock/statuses/{sha}","languages_url":"https://api.github.com/repos/bhavesh-k/padlock/languages","stargazers_url":"https://api.github.com/repos/bhavesh-k/padlock/stargazers","contributors_url":"https://api.github.com/repos/bhavesh-k/padlock/contributors","subscribers_url":"https://api.github.com/repos/bhavesh-k/padlock/subscribers","subscription_url":"https://api.github.com/repos/bhavesh-k/padlock/subscription","commits_url":"https://api.github.com/repos/bhavesh-k/padlock/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhavesh-k/padlock/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhavesh-k/padlock/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhavesh-k/padlock/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhavesh-k/padlock/contents/{+path}","compare_url":"https://api.github.com/repos/bhavesh-k/padlock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhavesh-k/padlock/merges","archive_url":"https://api.github.com/repos/bhavesh-k/padlock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhavesh-k/padlock/downloads","issues_url":"https://api.github.com/repos/bhavesh-k/padlock/issues{/number}","pulls_url":"https://api.github.com/repos/bhavesh-k/padlock/pulls{/number}","milestones_url":"https://api.github.com/repos/bhavesh-k/padlock/milestones{/number}","notifications_url":"https://api.github.com/repos/bhavesh-k/padlock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhavesh-k/padlock/labels{/name}","releases_url":"https://api.github.com/repos/bhavesh-k/padlock/releases{/id}","deployments_url":"https://api.github.com/repos/bhavesh-k/padlock/deployments","created_at":"2016-05-16T20:24:35Z","updated_at":"2016-05-16T20:24:36Z","pushed_at":"2016-05-17T22:37:43Z","git_url":"git://github.com/bhavesh-k/padlock.git","ssh_url":"git@github.com:bhavesh-k/padlock.git","clone_url":"https://github.com/bhavesh-k/padlock.git","svn_url":"https://github.com/bhavesh-k/padlock","homepage":"http://padlock.io","size":2032,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MaKleSoft:master","ref":"master","sha":"d18892ad6355f915385af3c9420b9a30c7de8f51","user":{"login":"MaKleSoft","id":1270940,"avatar_url":"https://avatars.githubusercontent.com/u/1270940?v=3","gravatar_id":"","url":"https://api.github.com/users/MaKleSoft","html_url":"https://github.com/MaKleSoft","followers_url":"https://api.github.com/users/MaKleSoft/followers","following_url":"https://api.github.com/users/MaKleSoft/following{/other_user}","gists_url":"https://api.github.com/users/MaKleSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKleSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKleSoft/subscriptions","organizations_url":"https://api.github.com/users/MaKleSoft/orgs","repos_url":"https://api.github.com/users/MaKleSoft/repos","events_url":"https://api.github.com/users/MaKleSoft/events{/privacy}","received_events_url":"https://api.github.com/users/MaKleSoft/received_events","type":"User","site_admin":false},"repo":{"id":14284411,"name":"padlock","full_name":"MaKleSoft/padlock","owner":{"login":"MaKleSoft","id":1270940,"avatar_url":"https://avatars.githubusercontent.com/u/1270940?v=3","gravatar_id":"","url":"https://api.github.com/users/MaKleSoft","html_url":"https://github.com/MaKleSoft","followers_url":"https://api.github.com/users/MaKleSoft/followers","following_url":"https://api.github.com/users/MaKleSoft/following{/other_user}","gists_url":"https://api.github.com/users/MaKleSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKleSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKleSoft/subscriptions","organizations_url":"https://api.github.com/users/MaKleSoft/orgs","repos_url":"https://api.github.com/users/MaKleSoft/repos","events_url":"https://api.github.com/users/MaKleSoft/events{/privacy}","received_events_url":"https://api.github.com/users/MaKleSoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaKleSoft/padlock","description":"A minimalist open source password manager.","fork":false,"url":"https://api.github.com/repos/MaKleSoft/padlock","forks_url":"https://api.github.com/repos/MaKleSoft/padlock/forks","keys_url":"https://api.github.com/repos/MaKleSoft/padlock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaKleSoft/padlock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaKleSoft/padlock/teams","hooks_url":"https://api.github.com/repos/MaKleSoft/padlock/hooks","issue_events_url":"https://api.github.com/repos/MaKleSoft/padlock/issues/events{/number}","events_url":"https://api.github.com/repos/MaKleSoft/padlock/events","assignees_url":"https://api.github.com/repos/MaKleSoft/padlock/assignees{/user}","branches_url":"https://api.github.com/repos/MaKleSoft/padlock/branches{/branch}","tags_url":"https://api.github.com/repos/MaKleSoft/padlock/tags","blobs_url":"https://api.github.com/repos/MaKleSoft/padlock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaKleSoft/padlock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaKleSoft/padlock/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaKleSoft/padlock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaKleSoft/padlock/statuses/{sha}","languages_url":"https://api.github.com/repos/MaKleSoft/padlock/languages","stargazers_url":"https://api.github.com/repos/MaKleSoft/padlock/stargazers","contributors_url":"https://api.github.com/repos/MaKleSoft/padlock/contributors","subscribers_url":"https://api.github.com/repos/MaKleSoft/padlock/subscribers","subscription_url":"https://api.github.com/repos/MaKleSoft/padlock/subscription","commits_url":"https://api.github.com/repos/MaKleSoft/padlock/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaKleSoft/padlock/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaKleSoft/padlock/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaKleSoft/padlock/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaKleSoft/padlock/contents/{+path}","compare_url":"https://api.github.com/repos/MaKleSoft/padlock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaKleSoft/padlock/merges","archive_url":"https://api.github.com/repos/MaKleSoft/padlock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaKleSoft/padlock/downloads","issues_url":"https://api.github.com/repos/MaKleSoft/padlock/issues{/number}","pulls_url":"https://api.github.com/repos/MaKleSoft/padlock/pulls{/number}","milestones_url":"https://api.github.com/repos/MaKleSoft/padlock/milestones{/number}","notifications_url":"https://api.github.com/repos/MaKleSoft/padlock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaKleSoft/padlock/labels{/name}","releases_url":"https://api.github.com/repos/MaKleSoft/padlock/releases{/id}","deployments_url":"https://api.github.com/repos/MaKleSoft/padlock/deployments","created_at":"2013-11-10T21:06:35Z","updated_at":"2016-05-16T20:13:28Z","pushed_at":"2016-05-18T15:25:17Z","git_url":"git://github.com/MaKleSoft/padlock.git","ssh_url":"git@github.com:MaKleSoft/padlock.git","clone_url":"https://github.com/MaKleSoft/padlock.git","svn_url":"https://github.com/MaKleSoft/padlock","homepage":"http://padlock.io","size":2043,"stargazers_count":217,"watchers_count":217,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":10,"forks":28,"open_issues":10,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42"},"html":{"href":"https://github.com/MaKleSoft/padlock/pull/42"},"issue":{"href":"https://api.github.com/repos/MaKleSoft/padlock/issues/42"},"comments":{"href":"https://api.github.com/repos/MaKleSoft/padlock/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/MaKleSoft/padlock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaKleSoft/padlock/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/MaKleSoft/padlock/statuses/6b6ea0d0167932f24a686261758da6ade06743fa"}}}}