我不搞基 2015-10-22 16:39 采纳率: 0%
浏览 1686

hibernateUnable to read XML是因为什么?

hibernate.cfg.xml文件如下:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">


zpf
123

com.mysql.jdbc.Driver


jdbc:mysql://localhost:3306/test


org.hibernate.dialect.MySQLDialect

true



product.hbm.xml如下:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">






















  • 写回答

3条回答 默认 最新

  • Robot-C 2015-10-22 16:43
    关注

    /*By Jiangong SUN*/
    How to read XML file easily?

    1. You can get your stream with a given url.

      private string GetStreamString(string url)
      {
          try
          {......<br/><strong>答案就在这里:</strong><a target='_blank' rel='nofollow' href='http://blog.csdn.net/garcon1986/article/details/6912342'>Read XML file easily with LINQ to XML</a><br/>----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。
      
    评论

报告相同问题?