zoukankan      html  css  js  c++  java
  • xml00

    <?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>










  • 相关阅读:
    表达式for loop
    用户输入
    字符编码
    变量字符编码
    Python安装
    Python 2 or 3?
    Python解释器
    2017中国大学生程序设计竞赛
    Educational Round 27
    Round #429 (Div.2)
  • 原文地址:https://www.cnblogs.com/chengbao/p/5302728.html
Copyright © 2011-2022 走看看