菜鸟问题····
<?xml version="1.0" ?><!DOCTYPE <FONT color=#ff0000>BOOK
</FONT> [
·····
]
>
请问一下 红色部分是自己定义的吗 ? 还是有什么规定的 ?
<P>public class Sample<BR>{<BR> public static void Main()<BR> {<BR> // Create the XmlDocument.<BR> XmlDocument doc = new XmlDocument();<BR> doc.LoadXml("<!DOCTYPE <FONT color=#f70968>sfsf <FONT color=#3809f7>[<!ENTITY h 'hardcover'>]>"</FONT> +<BR> "<book genre='novel' ISBN='1-861001-57-5'>" +<BR> "<title>Pride And Prejudice</title>" +<BR> "<style>&h;</style>" +<BR> "</book>");</FONT></P>
<P> // Display information on the DocumentType node.<BR> XmlDocumentType doctype = doc.DocumentType;<BR> Console.WriteLine("Name of the document type: {0}", doctype.Name);<BR> Console.WriteLine("The internal subset of the document type: {0}", doctype.InternalSubset);</P>
<P> }<BR>}<BR></P>
页:
[1]
