Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我喜欢使用如下元素定义 DTD:
<result> <name/><resultType/>[more elements...] </result> OR it could be: <result>Some text</result>
我的元素定义如下所示:
<!ELEMENT result ((name,resultType,...,pages)|#PCDATA)>
但是 Visual Studio 说这是无效的。
有什么解决方案吗?
必须是括号中列出的#PCDATA元素之一,并由 分隔|。尝试:
#PCDATA
|
<!ELEMENT rootelement (#PCDATA|childel1|childel)*>