• xml acilim olarak extensible markup language demektir. yani genisletilebilir isaretleme dili. genel olarak internet uzerinde pekcok isaretleme dili (html, sgml, vrml...) kullanilabilmektedir. butun bu dillerin toplandigi ve gelistiricinin kendi komutlarini kendisinin yazabilecegi bir dil olan xml cok basit bir iki kural disinda kural icermemektedir. genel olarak bilginin daha duzgun bir yapiyla tutulmasini saglayan xml tek basina kullanilamamaktadir. bir parsera ihtiyac duymaktadirbir xml ornegi:

    <?xml version="1.0"?>

    <!-- file name: inventory.xml -->

    <inventory>

    <book>

    <title>the adventures of huckleberry finn</title>

    <author>mark twain</author>

    <binding>mass market paperback</binding>

    <pages>298</pages>

    <price>$5.49</price>

    </book>

    <book>

    <title>leaves of grass</title>

    <author>walt whitman</author>

    <binding>hardcover</binding>

    <pages>462</pages>

    <price>$7.75</price>

    </book>

    <book>

    <title>the legend of sleepy hollow</title>

    <author>washington irving</author>

    <binding>mass market paperback</binding>

    <pages>98</pages>

    <price>$2.95</price>

    </book>

    <book>

    <title>the marble faun</title>

    <author>nathaniel hawthorne</author>

    <binding>trade paperback</binding>

    <pages>473</pages>

    <price>$10.95</price>

    </book>

    <book>

    <title>moby-dick</title>

    <author>herman melville</author>

    <binding>hardcover</binding>

    <pages>724</pages>

    <price>$9.95</price>

    </book>

    <book>

    <title>the portrait of a lady</title>

    <author>henry james</author>

    <binding>mass market paperback</binding>

    <pages>256</pages>

    <price>$4.95</price>

    </book>

    <book>

    <title>the scarlet letter</title>

    <author>nathaniel hawthorne</author>

    <binding>trade paperback</binding>

    <pages>253</pages>

    <price>$4.25</price>

    </book>

    <book>

    <title>the turn of the screw</title>

    <author>henry james</author>

    <binding>trade paperback</binding>

    <pages>384</pages>

    <price>$3.35</price>

    </book>

    </inventory>

    yukaridaki ornekte goruldugu gibi xml dokumanlarina <?xml version=”1.0”?> satiri ile baslanir. bu satirdaki version kismi xml dokumanimizin hangi versiyona uyumlu oldugunu gosterir.

    <!-- ... --> satiri ise htmlde oldugu gibi comment satiridir, bu isaretler icinde yazilanlar xml dili icin onemsizdir.

    ornekte diger goze carpan ozellikler:

    her acilan komutun kapanmis olmasi (</komut> kapatmak icin kullanilir)

    once acilan komutun sonra kapanmis olmasi (yani <komut1><komut2>xxx</komut2></komut1> seklinde kullanilmis, <komut1><komut2>xxx</komut1><komut2> seklinde kullanilmamistir).

    yazilan metnin buyuk/kucuk harfe duyarli olmasi (yani <komut1><komut2>xxx</komut2></komut1> seklinde kullanilmis, <komut1><komut2>xxx</komut1><komut2> seklinde kullanilmamistir).

    her xml belgesinde bir kok komutu bulunmalidir (ornekte <inventory> kok komuttur. yani butun komutlar bu kok komutun altindadir)
hesabın var mı? giriş yap