怎么解决XML文件中的警告提示“No grammar constraints (DTD or XML Schema) referenced in the document.”

如何解决XML文件中的警告提示“No grammar constraints (DTD or XML Schema) referenced in the document.”

解决方法:加上 <!DOCTYPE xml> 

<?xml version="1.0" encoding="UTF-8"?>
<strong><span style="color:#ff0000;"><!DOCTYPE xml></span></strong>

<ROOT>
 <goods>
  <isin>SN100001</isin>
  <quantity>1100</quantity>
  <price>200.20</price>
  <customer>张三</customer>
 </goods>
</ROOT>

(原创文章,转载请注明转自:http://blog.****.net/clementad)