xml parsing error

Wesley Li-Wei Chou(周立瑋) <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
While I am parsing .xml files come with components, I always get error from my parser.
Than I use http://www.w3.org/2001/03/webdata/xsv to validate it, the output shows that the problem is in component.dtd.
 
Valication output:
Error: Encoding declaration is required in text declaration
 in unnamed entity at line 1 char 23 of http://sources.redhat.com/sid/component.dtd
 
If I remove the <?xml version="1.0" ?> at first line or modify it as <?xml version="1.0" encoding="UTF-8"?>, it turns out to be ok.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.