{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/f1a41f00eac91827a1f46959ec99bc12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f1a41f00eac91827a1f46959ec99bc12","url":"https://api.github.com/users/kitplummer","login":"kitplummer","id":4249},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-02T14:49:23Z","closed_at":null,"comments":3,"url":"https://api.github.com/repos/tenderlove/nokogiri/issues/559","body":"doesn't seem to like the <?xml ... ?> header, while in regular Ruby it doesn't have a problem.  I'm guessing this is a Xerces vs. libxml issue, but wondered if anybody else has seen this issue.\r\n\r\nI'm using 1.5.0.\r\n\r\nI've captured a simple script that shows the error returned by the fog.io library:\r\n\r\nhttps://gist.github.com/1328982\r\n\r\nNot sure if this is a bug, or something that should be handled in the next abstraction up.  Thoughts/ideas?","html_url":"https://github.com/tenderlove/nokogiri/issues/559","number":559,"title":"Nokogiri::XML::SAX::PushParser's native_write in JRuby...","id":2111807,"created_at":"2011-11-01T15:58:04Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/e184bc2347f90dd61b509de6eb43a8b6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e184bc2347f90dd61b509de6eb43a8b6","url":"https://api.github.com/users/yokolet","login":"yokolet","id":193059},"updated_at":"2011-11-02T14:49:23Z","url":"https://api.github.com/repos/tenderlove/nokogiri/issues/comments/2604244","body":"Thank you. Now, I got the exactly the same error. However, libxml version also resported the Syntax error. Perhaps, copy & paste didn't do correctly?\r\n\r\nAnyway, I confirmed pure Java version has a bug of push parser. I used some of Nokogiri's test xml files to see how push parser (without fog) worked. \"po.xml\" raised \"Nokogiri::XML::SyntaxError: The processing instruction target matching \"[xX][mM][lL]\" is not allowed.\"  on pure Java version. But, not on libxml version. I'll look into this.\r\n\r\nFor reference, the test code is https://gist.github.com/1333808\r\nI ran this code from Nokogiri's top directory as in below:\r\n```\r\njruby -Ilib -Itest ../Canna/src/snippet/issue559_test.rb tesfiles/po.xml\r\n```\r\n\r\n","id":2604244,"created_at":"2011-11-02T14:49:23Z"}}