XML可扩展标记语言(啥也不能干)
是一种程序语言,类似HTML,使设计者能够创建他们自己的定制标签
Standard for data representation and exchange数据表示和交换的标准
Elements标签,标记
必须有root element根元素<Bookstore>
格式:start-tag开始标签<Bookstore>,end-tag结束标签</Bookstore>,空标签<EMPTYEKEMENT/>,开始和结束标签必须匹配
Attributes实体
开始和结束标签中间的东西,属性值用双引号括,,起来一个给定的属性只能在一个标记中出现一次,而具有相同标记的子元素可以重复出现:
例:<Book ISBN=”0200300” Price=”20” Edition=”1st”>
Other Secitions
//Declaration:在XML文档开始时可选
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> 版本,编码方式等
//Entity reference:实体引用
< is the same as <
//Comments:注释:
<!--......-->横杠前后不能少!
顺序 Tag必须要ordered;Attributes是unordered
格式良好的

最低0.47元/天 解锁文章

1578

被折叠的 条评论
为什么被折叠?



