1 / 28

XML ve XML Teknolojileri

XML ve XML Teknolojileri. Mustafa Ferhan Akman. http://ferhanakman.wordpress.com. AJANDA. XML XQuery & XPath DTD & Schema XSLT. XML. XML Nedir? . XML. XML Nedir? . e X tensible M arkup L anguage. XML. XML Nedir? . e X tensible M arkup L anguage

jethro
Download Presentation

XML ve XML Teknolojileri

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XMLve XML Teknolojileri Mustafa Ferhan Akman • http://ferhanakman.wordpress.com

  2. AJANDA • XML • XQuery & XPath • DTD & Schema • XSLT

  3. XML • XML Nedir?

  4. XML • XML Nedir? • eXtensible Markup Language

  5. XML • XML Nedir? • eXtensible Markup Language • Veri taşımada ortak bir platform

  6. XML • XML Nedir? • eXtensible Markup Language • Veri taşımada ortak bir platform • Donanımdan bağımsızlık

  7. XML • XML Nedir? • ENTEGRASYON!

  8. XML • XML Nedir? • Kullanım Alanları

  9. XML • XML Nedir? • Kullanım Alanları • Configuration dosyaları • yaygın olarak J2EE

  10. XML • XML Nedir? • Kullanım Alanları • Configuration dosyaları • yaygın olarak J2EE • Data transferi

  11. XML • XML Nedir? • Kullanım Alanları • Configuration dosyaları • yaygın olarak J2EE • Data transferi • B2B • ebXML (standarts for electronic business ) • IFX (financal exchance) • SOAP (messaging exchange)

  12. XML • XML Nedir? • Kullanım Alanları • Configuration dosyaları • yaygın olarak J2EE • Data transferi • B2B • ebXML (standarts for electronic business ) • IFX (financal exchance) • SOAP (messaging exchange) • XML Database • IBM DB2 9.x • Oracle

  13. XML • XML Nedir? • Kullanım Alanları • XML Architecture

  14. XML vs HTML HTML, insanlar için. XML, data için.

  15. XML XML Syntax <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student id=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <student id=“20040476> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  16. XML XML Syntax <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student id=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <student id=“20040476> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  17. XML XML Syntax <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <studentid=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <studentid=“20040476”> <name> Süleyman </name> <grade>A-</grade> </student> </class_list>

  18. XML XML Syntax <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student> <id> 20040648</id> <name>Hüseyin </name> <grade>C+</grade> </student> <student> <id> 20040476</id> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  19. XML XML Syntax – Well Formed & Validate (iyi biçimli & geçerli) <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student id=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <student id=“20040476> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  20. XQuery xmlcolumn (‘SCHOOL.INFO')//name <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student id=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <student id=“20040476> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  21. XQuery • <name>Hüseyin</name> • <name>Süleyman</name> xmlcolumn (‘SCHOOL.INFO')//name <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student id=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <student id=“20040476> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  22. XQuery • Hüseyin • Süleyman xmlcolumn (‘SCHOOL.INFO')//name/text() <?xml version="1.0" encoding="ISO-8859-9"?> <class_list> <student id=“20040648”> <name>Hüseyin </name> <grade>C+</grade> </student> <student id=“20040476> <name>Süleyman</name> <grade>A-</grade> </student> </class_list>

  23. XPath

  24. DTD & XML Schema • DTD Document Type Definition • Niçin kullanılırlar? • Hata oranını azaltabiliriz • Kendine özgü yazım kuralları var • XML yazım formatında olduklarından, yazılması ve anlaşılması kolaydır DTD’nin eklenmesi: <!DOCTYPE class_list SYSTEM “class_yapisi.dtd“> XML Schema’nın eklenmesi: xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsi:oNamespaceSchemaLocation= “class_yapisi.xsd”>

  25. XSL • XSLT (Extensible Style Language Transform) • XML verilerimize rahat okunabilirlik kazandırır • CSS’in eksikliklerini kapatır • XSL script kullanımına izin verdiği için pratiktir

  26. XSL (II) <?xml version="1.0" encoding="ISO-8859-9" ?> - <exam id="math-3"> <title>Matematik Dersi 2. Ara Sınavı</title> - <question number="1"> <text>İki kere iki iki kaç eder?</text> <option id="a">22</option> <option id="b">3</option> <option id="c">4</option> <option id="d">5</option> </question> - <question number="2"> <text>Kendimi kendimden çıkarsam kaç kalır?</text> <option id="a">1</option> <option id="b">2</option> <option id="c">0</option> <option id="d">FD</option> </question> </exam> XSL

  27. Kaynaklar • Mustafa Ferhan Akman • http://ferhanakman.wordpress.com • Godoro • http://www.godoro.com/ • XML 1.0 Specification • http://www.w3.org/TR/REC-xml/ • WWW consortium’s home page on XML • http://www.w3.org/XML/

  28. Teşekkürler & Sorular • Mustafa Ferhan Akman • http://ferhanakman.wordpress.com

More Related