{"action":"created","issue":{"url":"https://api.github.com/repos/mathiasbynens/small/issues/32","labels_url":"https://api.github.com/repos/mathiasbynens/small/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/mathiasbynens/small/issues/32/comments","events_url":"https://api.github.com/repos/mathiasbynens/small/issues/32/events","html_url":"https://github.com/mathiasbynens/small/issues/32","id":16750668,"number":32,"title":"[Requesting comment] Smallest possible XML file","user":{"login":"Zegnat","id":490579,"avatar_url":"https://avatars.githubusercontent.com/u/490579?v=3","gravatar_id":"","url":"https://api.github.com/users/Zegnat","html_url":"https://github.com/Zegnat","followers_url":"https://api.github.com/users/Zegnat/followers","following_url":"https://api.github.com/users/Zegnat/following{/other_user}","gists_url":"https://api.github.com/users/Zegnat/gists{/gist_id}","starred_url":"https://api.github.com/users/Zegnat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zegnat/subscriptions","organizations_url":"https://api.github.com/users/Zegnat/orgs","repos_url":"https://api.github.com/users/Zegnat/repos","events_url":"https://api.github.com/users/Zegnat/events{/privacy}","received_events_url":"https://api.github.com/users/Zegnat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-07-15T12:03:47Z","updated_at":"2015-07-31T20:34:07Z","closed_at":null,"body":"By strict reading of the [XML 1.0 standard](http://www.w3.org/TR/REC-xml/) am I right to assume the smallest possible XML file is the following?\r\n\r\n``` xml\r\n<?xml version='1.0'?><_/>\r\n```\r\n\r\nThis does validate as ‘well-formed XML’ on [the W3C Markup Validator](http://validator.w3.org). The only odd part is that the root element is seen as `_/` rather than `_`. Looks like a bug, because it does treat the slash as a closing slash.\r\n\r\nNot sure if I should pull, requesting comment.\r\n\r\n---\r\n\r\nA XML document is:\r\n```\r\ndocument      ::=   prolog element Misc*\r\n```\r\nWhere:\r\n```\r\nprolog        ::=   XMLDecl? Misc* (doctypedecl Misc*)?\r\nXMLDecl       ::=   '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'\r\nVersionInfo   ::=   S 'version' Eq (\"'\" VersionNum \"'\" | '\"' VersionNum '\"')\r\nEq            ::=   S? '=' S?\r\nVersionNum    ::=   '1.' [0-9]+\r\n```\r\nAnd:\r\n```\r\nelement       ::=   EmptyElemTag\r\n                    | STag content ETag\r\n```\r\nWith:\r\n```\r\nEmptyElemTag  ::=   '<' Name (S Attribute)* S? '/>'\r\n```\r\nWhile:\r\n```\r\nName          ::=   NameStartChar (NameChar)*\r\n```\r\nIn short we get this when all optional (marked by `?` or `*`) parts are left out:\r\n```\r\ndocument      ::= '<?xml' S 'version' '=' (\"'\" '1.' [0-9]+ \"'\" | '\"' '1.' [0-9]+ '\"') '?>' '<' NameStartChar '/>'\r\n```"},"comment":{"url":"https://api.github.com/repos/mathiasbynens/small/issues/comments/126806351","html_url":"https://github.com/mathiasbynens/small/issues/32#issuecomment-126806351","issue_url":"https://api.github.com/repos/mathiasbynens/small/issues/32","id":126806351,"user":{"login":"waldyrious","id":478237,"avatar_url":"https://avatars.githubusercontent.com/u/478237?v=3","gravatar_id":"","url":"https://api.github.com/users/waldyrious","html_url":"https://github.com/waldyrious","followers_url":"https://api.github.com/users/waldyrious/followers","following_url":"https://api.github.com/users/waldyrious/following{/other_user}","gists_url":"https://api.github.com/users/waldyrious/gists{/gist_id}","starred_url":"https://api.github.com/users/waldyrious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldyrious/subscriptions","organizations_url":"https://api.github.com/users/waldyrious/orgs","repos_url":"https://api.github.com/users/waldyrious/repos","events_url":"https://api.github.com/users/waldyrious/events{/privacy}","received_events_url":"https://api.github.com/users/waldyrious/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T20:34:07Z","updated_at":"2015-07-31T20:34:07Z","body":"@mathiasbynens shouldn't this be closed after the resolution of #34?"}}