3201 发表于 2005-6-20 16:01

菜鸟问题····

<?xml version="1.0" ?>

&lt;!DOCTYPE <FONT color=#ff0000>BOOK
</FONT>  [

·····

]

&gt;

请问一下 红色部分是自己定义的吗 ? 还是有什么规定的 ?

jeremydomett 发表于 2005-6-26 15:42

应该是自己定义的吧。。。

E恒 发表于 2005-9-8 20:07

这么简单的问题你也要问啊。你可以自己去尝试啊,去更改啊。如果更改后出现错误那么就是不可更改的标签,反之就是可以更改啦!!学程序嘛就是要多练,多尝试,又不会出人命怕什么???

唐伯猫 发表于 2006-3-13 16:41

<P>在以下的例子里,红色部分就是自己定义的,好象兰色部分不可以自己定义.具体的我也不是很明白,因为也是第一次遇到这样的问题.<BR>using System;<BR>using System.IO;<BR>using System.Xml;</P>
<P>public class Sample<BR>{<BR> public static void Main()<BR> {<BR>  // Create the XmlDocument.<BR>  XmlDocument doc = new XmlDocument();<BR>  doc.LoadXml("&lt;!DOCTYPE <FONT color=#f70968>sfsf <FONT color=#3809f7>[&lt;!ENTITY h 'hardcover'&gt;]&gt;"</FONT> +<BR>   "&lt;book genre='novel' ISBN='1-861001-57-5'&gt;" +<BR>   "&lt;title&gt;Pride And Prejudice&lt;/title&gt;" +<BR>   "&lt;style&gt;&amp;h;&lt;/style&gt;" +<BR>   "&lt;/book&gt;");</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]

编程论坛