This is the mail archive of the sid@sourceware.org mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xml parsing error


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]