วันศุกร์ที่ 14 กันยายน พ.ศ. 2561

Week 3 Selected Topic

Week 3 Selected Topic

XML Schema


คืออะไรซักอย่างที่เอาไว้ใช้อธิบายโครงสร้างเอกสาร XML ,(just like a DTD)
เอกสาร XML ที่มี syntax ถูกต้องเรียกว่า Well Formed
เอกสาร XML ที่ถูก validate โดย XML Schema จะเป็นทั้ง Well Formed และ Valid

XML Schema are more powerful than DTD


XML Schema เขียนด้วย XML
XML Schema are extensible to additions
XML Schema support data types
XML Schema support namespaces

XML Schemas Support Data Types


It is easier to describe document content
It is easier to define restrictions on data
It is easier to validate the correctness of data
It is easier to convert data between different data types

Why Use an XML Schema?
With XML Schema, your XML files can carry a description of its own format.
With XML Schema, independent groups of people can agree on a standard for interchanging data.
With XML Schema, you can verify data.

นำเอา XML ไปใช้






Sitemap คืออะไร


เมื่อใดก็ตามที่ bot ของ search engine ต่างๆ เช่น google, bing มาเก็บข้อมูลของเว็บไซต์เรา มันจะเก็บข้อมูลด้วยการไต่ไปตามลิงค์ต่างๆ และมันจะทำงานได้เร็วขึ้นหากเราสร้างแผนที่ไว้ให้มันไต่เรียบร้อยแล้ว ซึ่งนั่นช่วยลดขั้นตอนในการทำงานของ search engine

XML FILE

XML Parser with Python

 

code python and result

XML Parser with Java Script

ผลที่ได้ 




















ไม่มีความคิดเห็น:

แสดงความคิดเห็น