程式與日常
XML DTD全名為XML document type declaration(XML文件類型宣告),是指向或包含定義XML文件元素(標籤)及架構的markup declaration(標記宣告)文件,用來定義XML文件中合法的元素及屬性。
例如Java Spring框架applicationContext.xml過去使用的spring-beans-2.0.dtd,其中定義了像是<beans>、<bean>等元素與各自的屬性。
applicationContext.xml
spring-beans-2.0.dtd
<beans>
<bean>
張貼留言
沒有留言:
張貼留言