主要参考菜鸟教程的https://www.runoob.com/xml/xml-tutorial.html来学习。
政策是以菜鸟教程为主,不要把看过的东西全写在word里,否则速度太慢。word里就只写写特别的东西。背一背知识点,否则记不住的,这也是一直到高中我所接收的训练。
XML 标签对大小写敏感
必须要有结尾,也可以用 /> 结尾:
<intent>
<action *** />
</intent>
经典eg:
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from category="WEB">Jani</from>
</note>
// 上面尖括号里的叫标签。标签之间的叫“数据”
// < > 里面的标签名字可以重复
// 属性必须加 " "
<!-- *** --> 是注释
注释可以换行,只要在注释框里就行。
eg:
<!-- QCOM development requirement: Ensure all partitions in LUN3 is a multiple of 128k
Linux Android customers can ignore this requirement -->