<?xml verson="1.0" encoding="ISO-8859-1"?> xml声明<note> <to>jone</to> <from>tom</from> <heading>remider</heading> <body>Don‘t froget the meeting,</body></note> xml具有出色的自我描述, 形成梳状结构 xml是严谨的, 开始标示和结束标示必须同时拥有, 不可以本省略 大小写敏感 必须正确嵌套 属性值必须加引号 <note date="2015/08/23"> <to>a</to> <from>b</from> </note> xml注释<!-- This is a comment --> 空格会被保留下, 与html的有区别 xml的元素内容 <bookstore> <book category="CHILDREN"> <title>Harry poter </title> <athor>H.ter</athor> <year>2015</year> <price>23.45</price> </book> </bookstore> 属性 vs 元素, 元素的可读性,更高 <note> <date> <day>08</day> <month>08</month> <year>2008</year> </date> <to>tom</to> <from>jhon</from> <heading>reminder</heading> <body>Don‘t forget the meeting</body> </note>
时间: 2024-08-05 05:11:03