උදව්වක්

Sea1men

Well-known member
  • Oct 25, 2015
    889
    413
    63
    හදේ
    මචන්ලා විසිටින් කාර්ඩ් 5කට xml එකයි dtd එකයි හදන්න ඕන.මේ කරලා තියෙන විදිය හරිද කියලා කියන්න පුලුවන්ද? ලොකු පිනක් :confused:

    XML
    Code:
      <?xml version="1.0" encoding="utf-8" ?> 
      <!DOCTYPE visitin (View Source for full doctype...)> 
    - <card>
    - <content>
    - <name>
      <firstName>FName</firstName> 
      <lastName>LName</lastName> 
      </name>
      <position>developer</position> 
      <company>company</company> 
    - <contact>
      <mobile>0000000000</mobile> 
      <email>[email protected]</email> 
      <address>address</address> 
      </contact>
      </content>
    - <content>
    - <name>
      <firstName>FName2</firstName> 
      <lastName>LName2</lastName> 
      </name>
      <position>developer</position> 
      <company>company2</company> 
    - <contact>
      <mobile>0000000000</mobile> 
      <email>[email protected]</email> 
      <address>address</address> 
      </contact>
      </content>
      </card>


    DTD
    Code:
    <!ELEMENT card (content+)>
    <!ELEMENT content (name,position,contact)>
    <!ELEMENT name (firstName,lastName)>
    <!ELEMENT firstName (#PCDATA)>
    <!ELEMENT lastName (#PCDATA)>
    <!ELEMENT position (#PCDATA)>
    <!ELEMENT company (#PCDATA)>
    <!ELEMENT contact (mobile,email,address)>
    <!ELEMENT mobile (#PCDATA)>
    <!ELEMENT email (#PCDATA)>
    <!ELEMENT address (#PCDATA)>


    මට දැන ගන්න ඕන මේක හරිද තව මොනව හරි එකතු කරන්න ඕනද කියලා.මම මොකුත් දන්නෙ නෑ මේ ගැන :no:
     
    Last edited: