{"action":"opened","number":81,"pull_request":{"url":"https://api.github.com/repos/tealeg/xlsx/pulls/81","id":27754860,"html_url":"https://github.com/tealeg/xlsx/pull/81","diff_url":"https://github.com/tealeg/xlsx/pull/81.diff","patch_url":"https://github.com/tealeg/xlsx/pull/81.patch","issue_url":"https://api.github.com/repos/tealeg/xlsx/issues/81","number":81,"state":"open","locked":false,"title":"fix xml tag order to fit XML schema","user":{"login":"shibukawa","id":564612,"avatar_url":"https://avatars.githubusercontent.com/u/564612?v=3","gravatar_id":"","url":"https://api.github.com/users/shibukawa","html_url":"https://github.com/shibukawa","followers_url":"https://api.github.com/users/shibukawa/followers","following_url":"https://api.github.com/users/shibukawa/following{/other_user}","gists_url":"https://api.github.com/users/shibukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shibukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibukawa/subscriptions","organizations_url":"https://api.github.com/users/shibukawa/orgs","repos_url":"https://api.github.com/users/shibukawa/repos","events_url":"https://api.github.com/users/shibukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shibukawa/received_events","type":"User","site_admin":false},"body":"This pull request fix XML tag order to satisfy XML schema.\r\n\r\nI tried create new xlsx file by using this module, but Excel couldn't read it.\r\n\r\nI checked resulting xlsx files by using validation checking tool ([openpyxl's schema.py](https://bitbucket.org/openpyxl/openpyxl/src/7a26e9a469426191a8475d53203bed57bdcaff40/openpyxl/tests/?at=default)) and it said the resulting sheet1.xml 's tag order was invalid. XML schema specifies the tag order like following:\r\n\r\n```xml\r\n  <xsd:complexType name=\"CT_Macrosheet\">\r\n    <xsd:sequence>\r\n      <xsd:element name=\"sheetPr\" type=\"CT_SheetPr\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"dimension\" type=\"CT_SheetDimension\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"sheetViews\" type=\"CT_SheetViews\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"sheetFormatPr\" type=\"CT_SheetFormatPr\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"cols\" type=\"CT_Cols\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\r\n      <xsd:element name=\"sheetData\" type=\"CT_SheetData\" minOccurs=\"1\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"sheetProtection\" type=\"CT_SheetProtection\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"autoFilter\" type=\"CT_AutoFilter\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"sortState\" type=\"CT_SortState\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"dataConsolidate\" type=\"CT_DataConsolidate\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"customSheetViews\" type=\"CT_CustomSheetViews\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"phoneticPr\" type=\"CT_PhoneticPr\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"conditionalFormatting\" type=\"CT_ConditionalFormatting\" minOccurs=\"0\"\r\n        maxOccurs=\"unbounded\"/>\r\n      <xsd:element name=\"printOptions\" type=\"CT_PrintOptions\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"pageMargins\" type=\"CT_PageMargins\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"pageSetup\" type=\"CT_PageSetup\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"headerFooter\" type=\"CT_HeaderFooter\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"rowBreaks\" type=\"CT_PageBreak\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"colBreaks\" type=\"CT_PageBreak\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"customProperties\" type=\"CT_CustomProperties\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"drawing\" type=\"CT_Drawing\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"legacyDrawing\" type=\"CT_LegacyDrawing\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"legacyDrawingHF\" type=\"CT_LegacyDrawing\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"drawingHF\" type=\"CT_DrawingHF\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"picture\" type=\"CT_SheetBackgroundPicture\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"oleObjects\" type=\"CT_OleObjects\" minOccurs=\"0\" maxOccurs=\"1\"/>\r\n      <xsd:element name=\"extLst\" minOccurs=\"0\" type=\"CT_ExtensionList\"/>\r\n    </xsd:sequence>\r\n  </xsd:complexType>\r\n```","created_at":"2015-01-21T12:11:40Z","updated_at":"2015-01-21T12:11:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tealeg/xlsx/pulls/81/commits","review_comments_url":"https://api.github.com/repos/tealeg/xlsx/pulls/81/comments","review_comment_url":"https://api.github.com/repos/tealeg/xlsx/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tealeg/xlsx/issues/81/comments","statuses_url":"https://api.github.com/repos/tealeg/xlsx/statuses/3ffda569b026e26cf1d6a9798386e7255721bc11","head":{"label":"shibukawa:fix/openxml-schema","ref":"fix/openxml-schema","sha":"3ffda569b026e26cf1d6a9798386e7255721bc11","user":{"login":"shibukawa","id":564612,"avatar_url":"https://avatars.githubusercontent.com/u/564612?v=3","gravatar_id":"","url":"https://api.github.com/users/shibukawa","html_url":"https://github.com/shibukawa","followers_url":"https://api.github.com/users/shibukawa/followers","following_url":"https://api.github.com/users/shibukawa/following{/other_user}","gists_url":"https://api.github.com/users/shibukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shibukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibukawa/subscriptions","organizations_url":"https://api.github.com/users/shibukawa/orgs","repos_url":"https://api.github.com/users/shibukawa/repos","events_url":"https://api.github.com/users/shibukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shibukawa/received_events","type":"User","site_admin":false},"repo":{"id":28498423,"name":"xlsx","full_name":"shibukawa/xlsx","owner":{"login":"shibukawa","id":564612,"avatar_url":"https://avatars.githubusercontent.com/u/564612?v=3","gravatar_id":"","url":"https://api.github.com/users/shibukawa","html_url":"https://github.com/shibukawa","followers_url":"https://api.github.com/users/shibukawa/followers","following_url":"https://api.github.com/users/shibukawa/following{/other_user}","gists_url":"https://api.github.com/users/shibukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shibukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibukawa/subscriptions","organizations_url":"https://api.github.com/users/shibukawa/orgs","repos_url":"https://api.github.com/users/shibukawa/repos","events_url":"https://api.github.com/users/shibukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shibukawa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shibukawa/xlsx","description":"Google Go (golang) library for reading and writing XLSX files.","fork":true,"url":"https://api.github.com/repos/shibukawa/xlsx","forks_url":"https://api.github.com/repos/shibukawa/xlsx/forks","keys_url":"https://api.github.com/repos/shibukawa/xlsx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shibukawa/xlsx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shibukawa/xlsx/teams","hooks_url":"https://api.github.com/repos/shibukawa/xlsx/hooks","issue_events_url":"https://api.github.com/repos/shibukawa/xlsx/issues/events{/number}","events_url":"https://api.github.com/repos/shibukawa/xlsx/events","assignees_url":"https://api.github.com/repos/shibukawa/xlsx/assignees{/user}","branches_url":"https://api.github.com/repos/shibukawa/xlsx/branches{/branch}","tags_url":"https://api.github.com/repos/shibukawa/xlsx/tags","blobs_url":"https://api.github.com/repos/shibukawa/xlsx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shibukawa/xlsx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shibukawa/xlsx/git/refs{/sha}","trees_url":"https://api.github.com/repos/shibukawa/xlsx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shibukawa/xlsx/statuses/{sha}","languages_url":"https://api.github.com/repos/shibukawa/xlsx/languages","stargazers_url":"https://api.github.com/repos/shibukawa/xlsx/stargazers","contributors_url":"https://api.github.com/repos/shibukawa/xlsx/contributors","subscribers_url":"https://api.github.com/repos/shibukawa/xlsx/subscribers","subscription_url":"https://api.github.com/repos/shibukawa/xlsx/subscription","commits_url":"https://api.github.com/repos/shibukawa/xlsx/commits{/sha}","git_commits_url":"https://api.github.com/repos/shibukawa/xlsx/git/commits{/sha}","comments_url":"https://api.github.com/repos/shibukawa/xlsx/comments{/number}","issue_comment_url":"https://api.github.com/repos/shibukawa/xlsx/issues/comments/{number}","contents_url":"https://api.github.com/repos/shibukawa/xlsx/contents/{+path}","compare_url":"https://api.github.com/repos/shibukawa/xlsx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shibukawa/xlsx/merges","archive_url":"https://api.github.com/repos/shibukawa/xlsx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shibukawa/xlsx/downloads","issues_url":"https://api.github.com/repos/shibukawa/xlsx/issues{/number}","pulls_url":"https://api.github.com/repos/shibukawa/xlsx/pulls{/number}","milestones_url":"https://api.github.com/repos/shibukawa/xlsx/milestones{/number}","notifications_url":"https://api.github.com/repos/shibukawa/xlsx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shibukawa/xlsx/labels{/name}","releases_url":"https://api.github.com/repos/shibukawa/xlsx/releases{/id}","created_at":"2014-12-26T03:34:35Z","updated_at":"2014-12-26T03:34:36Z","pushed_at":"2015-01-21T12:02:24Z","git_url":"git://github.com/shibukawa/xlsx.git","ssh_url":"git@github.com:shibukawa/xlsx.git","clone_url":"https://github.com/shibukawa/xlsx.git","svn_url":"https://github.com/shibukawa/xlsx","homepage":"","size":709,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"tealeg:master","ref":"master","sha":"c1e75e52aa27af485e3045fe6a7e13617c20fc2e","user":{"login":"tealeg","id":20375,"avatar_url":"https://avatars.githubusercontent.com/u/20375?v=3","gravatar_id":"","url":"https://api.github.com/users/tealeg","html_url":"https://github.com/tealeg","followers_url":"https://api.github.com/users/tealeg/followers","following_url":"https://api.github.com/users/tealeg/following{/other_user}","gists_url":"https://api.github.com/users/tealeg/gists{/gist_id}","starred_url":"https://api.github.com/users/tealeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tealeg/subscriptions","organizations_url":"https://api.github.com/users/tealeg/orgs","repos_url":"https://api.github.com/users/tealeg/repos","events_url":"https://api.github.com/users/tealeg/events{/privacy}","received_events_url":"https://api.github.com/users/tealeg/received_events","type":"User","site_admin":false},"repo":{"id":1966991,"name":"xlsx","full_name":"tealeg/xlsx","owner":{"login":"tealeg","id":20375,"avatar_url":"https://avatars.githubusercontent.com/u/20375?v=3","gravatar_id":"","url":"https://api.github.com/users/tealeg","html_url":"https://github.com/tealeg","followers_url":"https://api.github.com/users/tealeg/followers","following_url":"https://api.github.com/users/tealeg/following{/other_user}","gists_url":"https://api.github.com/users/tealeg/gists{/gist_id}","starred_url":"https://api.github.com/users/tealeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tealeg/subscriptions","organizations_url":"https://api.github.com/users/tealeg/orgs","repos_url":"https://api.github.com/users/tealeg/repos","events_url":"https://api.github.com/users/tealeg/events{/privacy}","received_events_url":"https://api.github.com/users/tealeg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tealeg/xlsx","description":"Google Go (golang) library for reading and writing XLSX files.","fork":false,"url":"https://api.github.com/repos/tealeg/xlsx","forks_url":"https://api.github.com/repos/tealeg/xlsx/forks","keys_url":"https://api.github.com/repos/tealeg/xlsx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tealeg/xlsx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tealeg/xlsx/teams","hooks_url":"https://api.github.com/repos/tealeg/xlsx/hooks","issue_events_url":"https://api.github.com/repos/tealeg/xlsx/issues/events{/number}","events_url":"https://api.github.com/repos/tealeg/xlsx/events","assignees_url":"https://api.github.com/repos/tealeg/xlsx/assignees{/user}","branches_url":"https://api.github.com/repos/tealeg/xlsx/branches{/branch}","tags_url":"https://api.github.com/repos/tealeg/xlsx/tags","blobs_url":"https://api.github.com/repos/tealeg/xlsx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tealeg/xlsx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tealeg/xlsx/git/refs{/sha}","trees_url":"https://api.github.com/repos/tealeg/xlsx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tealeg/xlsx/statuses/{sha}","languages_url":"https://api.github.com/repos/tealeg/xlsx/languages","stargazers_url":"https://api.github.com/repos/tealeg/xlsx/stargazers","contributors_url":"https://api.github.com/repos/tealeg/xlsx/contributors","subscribers_url":"https://api.github.com/repos/tealeg/xlsx/subscribers","subscription_url":"https://api.github.com/repos/tealeg/xlsx/subscription","commits_url":"https://api.github.com/repos/tealeg/xlsx/commits{/sha}","git_commits_url":"https://api.github.com/repos/tealeg/xlsx/git/commits{/sha}","comments_url":"https://api.github.com/repos/tealeg/xlsx/comments{/number}","issue_comment_url":"https://api.github.com/repos/tealeg/xlsx/issues/comments/{number}","contents_url":"https://api.github.com/repos/tealeg/xlsx/contents/{+path}","compare_url":"https://api.github.com/repos/tealeg/xlsx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tealeg/xlsx/merges","archive_url":"https://api.github.com/repos/tealeg/xlsx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tealeg/xlsx/downloads","issues_url":"https://api.github.com/repos/tealeg/xlsx/issues{/number}","pulls_url":"https://api.github.com/repos/tealeg/xlsx/pulls{/number}","milestones_url":"https://api.github.com/repos/tealeg/xlsx/milestones{/number}","notifications_url":"https://api.github.com/repos/tealeg/xlsx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tealeg/xlsx/labels{/name}","releases_url":"https://api.github.com/repos/tealeg/xlsx/releases{/id}","created_at":"2011-06-28T15:20:28Z","updated_at":"2015-01-21T07:49:23Z","pushed_at":"2015-01-20T01:14:43Z","git_url":"git://github.com/tealeg/xlsx.git","ssh_url":"git@github.com:tealeg/xlsx.git","clone_url":"https://github.com/tealeg/xlsx.git","svn_url":"https://github.com/tealeg/xlsx","homepage":"","size":1398,"stargazers_count":379,"watchers_count":379,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":8,"forks":101,"open_issues":8,"watchers":379,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tealeg/xlsx/pulls/81"},"html":{"href":"https://github.com/tealeg/xlsx/pull/81"},"issue":{"href":"https://api.github.com/repos/tealeg/xlsx/issues/81"},"comments":{"href":"https://api.github.com/repos/tealeg/xlsx/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/tealeg/xlsx/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/tealeg/xlsx/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tealeg/xlsx/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/tealeg/xlsx/statuses/3ffda569b026e26cf1d6a9798386e7255721bc11"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}