2011-04-21 20:59:03,406 [ERROR] - Error parsing XML: XML InputStream(2) The processing instruction target matching "[xX][mM][lL]" is not allowed.
Exception in thread "main" org.hibernate.MappingException: Could not read mappings from resource: com/bjhxt/hibernate/Student.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:485)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1296)
at StudentText.main(StudentText.java:16)
Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:431)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:482)
... 7 more
Caused by: org.dom4j.DocumentException: Error on line 2 of document  : The processing instruction target matching "[xX][mM][lL]" is not allowed. Nested exception: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:422)
... 8 more
哎。第一天学这个就琢磨这东西两天。。还是跟着视频做的。人家就没问题。一遍就过。。我这儿两天了还没弄明白,都快崩溃了。。各位高手帮帮忙啊。看看这啥毛病!!!!