partial fix to #1001; should handle XML cases 1-3, not sure about definition of XML no 4
partial fix to #1001; should handle XML cases 1-3, not sure about definition of XML no 4

kelle/astropy,stargaser/astropy,DougBurke/astropy,bsipocz/astropy,StuartLittlefair/astropy,larrybradley/astropy,stargaser/astropy,mhvk/astropy,pllim/astropy,dhomeier/astropy,stargaser/astropy,StuartLittlefair/astropy,bsipocz/astropy,aleksandr-bakanov/astropy,astropy/astropy,kelle/astropy,saimn/astropy,dhomeier/astropy,joergdietrich/astropy,astropy/astropy,bsipocz/astropy,lpsinger/astropy,larrybradley/astropy,StuartLittlefair/astropy,DougBurke/astropy,astropy/astropy,dhomeier/astropy,MSeifert04/astropy,larrybradley/astropy,joergdietrich/astropy,DougBurke/astropy,tbabej/astropy,astropy/astropy,funbaker/astropy,lpsinger/astropy,saimn/astropy,joergdietrich/astropy,StuartLittlefair/astropy,stargaser/astropy,saimn/astropy,tbabej/astropy,tbabej/astropy,kelle/astropy,aleksandr-bakanov/astropy,funbaker/astropy,pllim/astropy,saimn/astropy,joergdietrich/astropy,dhomeier/astropy,funbaker/astropy,lpsinger/astropy,larrybradley/astropy,AustereCuriosity/astropy,lpsinger/astropy,DougBurke/astropy,pllim/astropy,kelle/astropy,larrybradley/astropy,mhvk/astropy,astropy/astropy,AustereCuriosity/astropy,MSeifert04/astropy,mhvk/astropy,mhvk/astropy,StuartLittlefair/astropy,saimn/astropy,lpsinger/astropy,aleksandr-bakanov/astropy,tbabej/astropy,AustereCuriosity/astropy,kelle/astropy,aleksandr-bakanov/astropy,bsipocz/astropy,tbabej/astropy,AustereCuriosity/astropy,funbaker/astropy,pllim/astropy,mhvk/astropy,AustereCuriosity/astropy,joergdietrich/astropy,MSeifert04/astropy,MSeifert04/astropy,dhomeier/astropy,pllim/astropy