SlideShare una empresa de Scribd logo
1 de 41
Descargar para leer sin conexión
eXtensible Markup Language
Markup Language
                    GML
             SGML




WML
      ..ML
Markup Language
A Markup Language is a computer
language that specifies the structure
and content of a document by breaking
the document down into the series of
elements
XML
XML stands for eXtensible Markup Language
XML is a markup language much like HTML
It’s a new markup language,developed by the
W3C(www.w3.org),mainly to overcome limitations
in HTML
XML was designed to describe data
XML tags are not predefined in XML.You must
define your own tags
XML & HTML
HTML and XML were designed with
different goals
  HTML was designed to display data and to
  focus on how data looks
  XML was designed to describe data and to
  focus on what data is
HTML is about displaying information,
XML is about describing information
XML & HTML

HTML tag : pre-defined tag
   <b>John</b>
XML tag : user-defined tag
   <Name>John</Name>
Markup Language Example
                    Markup
                   Language


      HTML                                  XML


<b>025447891</b>          <myphonenumber>025447891</myphonenumber>
XML Example
                                     XML

xml01.xml

<?xml version=“1.0”?>
<employee>
<id>001</id>
<name>Prapoj Sukmanont</name>
<city>Bangkok</city>
<email>prapojs@hotmail.com</email>
</employee>
Element Structure

              Element Name

      <tag>       Content      </tag>


Open Tag(start-tag)          Close Tag(end-tag)
XML Structure
<?xml version=“1.0” ?>             root
<root>
 <child>
   <sub_child>
   </sub_child>
 </child>                child             child
 <child>
   <sub_child>
   </sub_child>
                       sub_child          sub_child
 </child>
</root>
XML File Structure
File name : *.xml

                       Prolog


                    Document Elements
Prolog
XML Declaration
  <?xml version=“1.0”?>
Document Type Declaration
  <!DOCTYPE PurchaseOrder SYSTEM “po.dtd”>
Processing Instruction(PI)
  <?xml-stylesheet type=“text/css” href=“test.css”?>
Document Elements

<employee>
 <id>001</id>
 <name>Prasit Lee</name>
 <city>Bangkok</city>
 <email>prasitl@hotmail.com</email>
</employee>
XML File Structure : Prolog
  File name : *.xml
1. XML Declaration                   Prolog
2. Document Type Declaration (DTD)
3. Processing Instruction (PI)

                Document Elements
XML Example
xml01.xml

<?xml version=“1.0” ?>
<employee>
 <id>001</id>
 <name>Prasit Lee</name>
 <city>Bangkok</city>
 <email>prasitl@hotmail.com</email>
</employee>
Thai Language XML Example
xml01th.xml

<?xml version=“1.0” encoding=“windows-874”?>
<employee>
  <id>001</id>
  <name>ประสิ ทธิ ลี</name>
  <city>กรุ งเทพ</city>
  <email>prasitl@hotmail.com</email>
</employee>
XML Benefits

       Self-describe Data


        Data Exchange
                                           XML Benefits
Messaging Format for Application

           So on…
(RSS, ebXML, XML Applications…)


         CML, MathML, MusicML, VoiceML …
Text File & XML File
   employee.txt                 employee.xml

     Text File                     XML File

                         <?xml version=“1.0” ?>
1,John,Bangkok           <employee>
2,David,New York          <id>1</id>
3,Peter,London            <name>John</name>
                          <city>Bangkok</city>
                          <id>2</id>
                          <name>David</name>
                          <city>New York</city>
                          <id>3</id>
                          <name>Peter</name>
                          <city>London</city>
                         </employee>
Data Exchange Example
   DB Server 1                               DB Server 2




XML Parser                employee.xml         XML Parser
                              XML File

  Database          <?xml version=“1.0” ?>
                                             Database
                    <employee>
                     <id>1</id>
                     <name>John</name>
                     <city>Bangkok</city>
                     <id>2</id>
                     <name>David</name>
                     <city>New York</city>
                     <id>3</id>
                     <name>Peter</name>
                     <city>London</city>
                    </employee>
XML Processor
After the XML document is created, it needs
to be evaluated by an application known as
an XML processor or XML parser
Part of the function of the parser is to
interpret the document’s code and verify that
it satisfies all of the XML specifications for
document structure and syntax
Microsoft developed an XML parser called
MSXML (msxml.exe) for its Internet Explorer
browser
Well-Formed XML

“A Well-Formed XML document contains no syntax
errors and satisfies the specifications for XML codes
as laid out by W3C”
1. Root Element

               <?xml version=“1.0” ?>
               <employee>
                 <id>001</id>
                 <name>Prapoj Sukmanont</name>
Root Element
                 <city>Bangkok</city>
                 <email>prapojs@hotmail.com</email>
               </employee>
2. Element Naming
XML elements must follow these naming rules
  Names can contain letters,numbers, and
  other characters.Names must not start with
  a number or other punctuation characters
  Names must not start with the letter
  xml(or XML or Xml ...)
  Names cannot contain space,(*,? And +)
  Avoid “-” and “.” in names
  The “:” should not be used in element
  names
Element Naming : Example
                 <-Company>
                 <9Company>
<Company>        <.My_company>
<_Company>       <Name*>
<My_company>     <Name?>
<First-name>     <Name+>
<Last.name>      <xmlbook>
                 <first name>

                        Not OK
         OK
3. Closed Tag


<?xml version=“1.0” ?>
<employee>
<id>001</id>
<name>Prapoj Sukmanont</name>
<city>Bangkok</city>
<email>prapojs@hotmail.com</email>
</employee>
4. Proper Nesting Tag

<ID>
                <ID>
 <name>
                 <name>
 </ID>
                 </name>
</name>
                </ID>
5. Case-sensitive

<ID>
                   <ID>
 <name>
                    <name>
 </Name>
                    </name>
</ID>
                   </ID>
6. Attribute Value
                    <employee id=“001”>
                     <name>

<employee id=001>    </name>
 <name>             </employee>

 </name>
</employee>
                    <employee id=‘001’>
                     <name>

                     </name>
                    </employee>
Element Attribute
     An attribute describes a feature or characteristic of an element .Attributes
     are often used to provide additional information about an element .The
     syntax for adding an attribute to an element is

<element_name attribute_name=“Attribute value”> … </element_name>

     Attribute name constraints:
         The name must begin with a letter or underscore (_)
         Space are not allowed in attribute names
         Attribute names should not begin with the text string “xml”
Well-Formed XML Example
                                       Well-Formed
                                           XML

 xml02.xml

<?xml version=“1.0” ?>
<employee>
<id>001</id>
<name prefix=“Mr”>Prapoj Sukmanont</name>
<city>Bangkok</city>
<email>prapojs@hotmail.com</email>
</employee>
XML Element Types
Normal element
 <Name>Prasit Lee </Name>
Empty element
 <telephone></telephone>
 <telephone/>
Element Content
Element Content
<Start-tag>   Content   </End-tag>

    Nested element
    Character data
    Reference Entity
    CDATA
    Comment
1. Nested Element

…
<BOOK>
  <TITLE> XML Book </TITLE>
  <AUTHOR>Prasit Lee </AUTHOR>
</BOOK>
2. Character Data

…
<TITLE> XML Book </TITLE>
<AUTHOR>Prasit Lee </AUTHOR>
…
3. Entity Reference


&      &amp;
<      &lt;
>      &gt;
“      &quot;
‘      &apos;
XML Example
xmlerror1.xml

<?xml version=“1.0” ?>
<Example>
  <Statement>if x < y </Statement>
</Example>


                    Not XML Well-formed
XML Example
xml03.xml

<?xml version=“1.0” ?>
<Example>
  <Statement>if x &lt; y </Statement>
</Example>
4. CDATA Section
xml04.xml

<?xml version=“1.0”?>
<Example>
  <Statement>
   <![CDATA[
     if x > y and a < b
     ]]>
  </Statement>
</Example>
CDATA
Sometimes, an XML document needs to store large
blocks of text containing the < and > symbols. In
that case, it would be cumbersome to replace all of
the < and > symbols with &lt; and &gt; character
reference, the code itself will be difficult to read
Instead of using character references, you can place
large blocks of text into a CDATA section
A CDATA section is a large block text that the XML
processor interprets only a text
           <![CDATA[
                    Text block
              ]]>
5. Comment

…
<BOOK>
  <!-- This is comment create by “Prasit” 03.02.2012-->
  <TITLE> XML Book </TITLE>
  <AUTHOR>Prasit Lee </AUTHOR>
</BOOK>

Más contenido relacionado

La actualidad más candente

Xml nisha dwivedi
Xml nisha dwivediXml nisha dwivedi
Xml nisha dwivediNIIT
 
Week32
Week32Week32
Week32H K
 
Processing XML and Spreadsheet data in Go
Processing XML and Spreadsheet data in GoProcessing XML and Spreadsheet data in Go
Processing XML and Spreadsheet data in GoRi Xu
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structureBaskarkncet
 
Using Mongoid with Ruby on Rails
Using Mongoid with Ruby on RailsUsing Mongoid with Ruby on Rails
Using Mongoid with Ruby on RailsNicholas Altobelli
 
Regular expression unit2
Regular expression unit2Regular expression unit2
Regular expression unit2smitha273566
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4Mudasir Syed
 
FYBSC IT Web Programming Unit III Document Object
FYBSC IT Web Programming Unit III  Document ObjectFYBSC IT Web Programming Unit III  Document Object
FYBSC IT Web Programming Unit III Document ObjectArti Parab Academics
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfoliogregmlewis
 

La actualidad más candente (20)

Xml
XmlXml
Xml
 
Xml nisha dwivedi
Xml nisha dwivediXml nisha dwivedi
Xml nisha dwivedi
 
Week32
Week32Week32
Week32
 
Form
FormForm
Form
 
Processing XML and Spreadsheet data in Go
Processing XML and Spreadsheet data in GoProcessing XML and Spreadsheet data in Go
Processing XML and Spreadsheet data in Go
 
It8074 soa-unit i
It8074 soa-unit iIt8074 soa-unit i
It8074 soa-unit i
 
Unit 5 xml (1)
Unit 5   xml (1)Unit 5   xml (1)
Unit 5 xml (1)
 
Web 6 | JavaScript DOM
Web 6 | JavaScript DOMWeb 6 | JavaScript DOM
Web 6 | JavaScript DOM
 
Web 5 | JavaScript Events
Web 5 | JavaScript EventsWeb 5 | JavaScript Events
Web 5 | JavaScript Events
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
03 x files
03 x files03 x files
03 x files
 
Xml Session No 1
Xml Session No 1Xml Session No 1
Xml Session No 1
 
Using Mongoid with Ruby on Rails
Using Mongoid with Ruby on RailsUsing Mongoid with Ruby on Rails
Using Mongoid with Ruby on Rails
 
Regular expression unit2
Regular expression unit2Regular expression unit2
Regular expression unit2
 
DOM Quick Overview
DOM Quick OverviewDOM Quick Overview
DOM Quick Overview
 
ActiveRecord vs Mongoid
ActiveRecord vs MongoidActiveRecord vs Mongoid
ActiveRecord vs Mongoid
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
 
Xml schema
Xml schemaXml schema
Xml schema
 
FYBSC IT Web Programming Unit III Document Object
FYBSC IT Web Programming Unit III  Document ObjectFYBSC IT Web Programming Unit III  Document Object
FYBSC IT Web Programming Unit III Document Object
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfolio
 

Similar a Xml overview (20)

Xml
XmlXml
Xml
 
Xml11
Xml11Xml11
Xml11
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1
 
XML.ppt
XML.pptXML.ppt
XML.ppt
 
XML notes.pptx
XML notes.pptxXML notes.pptx
XML notes.pptx
 
Xml
XmlXml
Xml
 
Android de la A a la Z XML Ulises Gonzalez
Android de la A a la Z  XML Ulises GonzalezAndroid de la A a la Z  XML Ulises Gonzalez
Android de la A a la Z XML Ulises Gonzalez
 
Basics of XML
Basics of XMLBasics of XML
Basics of XML
 
Xsd
XsdXsd
Xsd
 
Xsd
XsdXsd
Xsd
 
Xml intro1
Xml intro1Xml intro1
Xml intro1
 
IT6801-Service Oriented Architecture- UNIT-I notes
IT6801-Service Oriented Architecture- UNIT-I notesIT6801-Service Oriented Architecture- UNIT-I notes
IT6801-Service Oriented Architecture- UNIT-I notes
 
Xml
XmlXml
Xml
 
distributed system concerned lab sessions
distributed system concerned lab sessionsdistributed system concerned lab sessions
distributed system concerned lab sessions
 
Xml
XmlXml
Xml
 
XML-Unit 1.ppt
XML-Unit 1.pptXML-Unit 1.ppt
XML-Unit 1.ppt
 
xml introduction in web technologies subject
xml introduction in web technologies subjectxml introduction in web technologies subject
xml introduction in web technologies subject
 
Xml
XmlXml
Xml
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)
 
Introduction to xml schema
Introduction to xml schemaIntroduction to xml schema
Introduction to xml schema
 

Más de Saran Yuwanna

How to Utilize LINE@ for Food Business #2
How to Utilize LINE@ for Food Business #2How to Utilize LINE@ for Food Business #2
How to Utilize LINE@ for Food Business #2Saran Yuwanna
 
รวยสบายสไตล์ Line@
รวยสบายสไตล์ Line@รวยสบายสไตล์ Line@
รวยสบายสไตล์ Line@Saran Yuwanna
 
การแปลง Facebook profile เป็น page
การแปลง Facebook profile เป็น pageการแปลง Facebook profile เป็น page
การแปลง Facebook profile เป็น pageSaran Yuwanna
 
Mobile apps for work @nuisaran
Mobile apps for work @nuisaranMobile apps for work @nuisaran
Mobile apps for work @nuisaranSaran Yuwanna
 
เทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshop
เทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshopเทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshop
เทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshopSaran Yuwanna
 
การทิ้งขยะของเมืองคาวาโกเอะ
การทิ้งขยะของเมืองคาวาโกเอะการทิ้งขยะของเมืองคาวาโกเอะ
การทิ้งขยะของเมืองคาวาโกเอะSaran Yuwanna
 
Mobile apps for secretary @nuisaran
Mobile apps for secretary @nuisaranMobile apps for secretary @nuisaran
Mobile apps for secretary @nuisaranSaran Yuwanna
 
การสร้าง Line@ และการใช้งาน
การสร้าง Line@ และการใช้งานการสร้าง Line@ และการใช้งาน
การสร้าง Line@ และการใช้งานSaran Yuwanna
 
การใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอ
การใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอการใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอ
การใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอSaran Yuwanna
 
กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”
กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”
กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”Saran Yuwanna
 
กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...
กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...
กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...Saran Yuwanna
 
ใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น
ใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่นใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น
ใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่นSaran Yuwanna
 
ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...
ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...
ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...Saran Yuwanna
 
ใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่น
ใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่นใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่น
ใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่นSaran Yuwanna
 
การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...
การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...
การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...Saran Yuwanna
 
40 ครูช่างศิลปหัตถกรรม ประจำปี 2557
40 ครูช่างศิลปหัตถกรรม ประจำปี 255740 ครูช่างศิลปหัตถกรรม ประจำปี 2557
40 ครูช่างศิลปหัตถกรรม ประจำปี 2557Saran Yuwanna
 
หวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะ
หวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะหวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะ
หวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะSaran Yuwanna
 
Ecommerce โอกาสทองของคนยุคใหม่
Ecommerce โอกาสทองของคนยุคใหม่Ecommerce โอกาสทองของคนยุคใหม่
Ecommerce โอกาสทองของคนยุคใหม่Saran Yuwanna
 
Social media for pr กรมส่งเสริมการเกษตร
Social media for pr กรมส่งเสริมการเกษตร Social media for pr กรมส่งเสริมการเกษตร
Social media for pr กรมส่งเสริมการเกษตร Saran Yuwanna
 
Social media for pr สปสช
Social media for pr สปสชSocial media for pr สปสช
Social media for pr สปสชSaran Yuwanna
 

Más de Saran Yuwanna (20)

How to Utilize LINE@ for Food Business #2
How to Utilize LINE@ for Food Business #2How to Utilize LINE@ for Food Business #2
How to Utilize LINE@ for Food Business #2
 
รวยสบายสไตล์ Line@
รวยสบายสไตล์ Line@รวยสบายสไตล์ Line@
รวยสบายสไตล์ Line@
 
การแปลง Facebook profile เป็น page
การแปลง Facebook profile เป็น pageการแปลง Facebook profile เป็น page
การแปลง Facebook profile เป็น page
 
Mobile apps for work @nuisaran
Mobile apps for work @nuisaranMobile apps for work @nuisaran
Mobile apps for work @nuisaran
 
เทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshop
เทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshopเทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshop
เทคนิคขายของออนไลน์ให้ปัง ให้รวย : lnwshop
 
การทิ้งขยะของเมืองคาวาโกเอะ
การทิ้งขยะของเมืองคาวาโกเอะการทิ้งขยะของเมืองคาวาโกเอะ
การทิ้งขยะของเมืองคาวาโกเอะ
 
Mobile apps for secretary @nuisaran
Mobile apps for secretary @nuisaranMobile apps for secretary @nuisaran
Mobile apps for secretary @nuisaran
 
การสร้าง Line@ และการใช้งาน
การสร้าง Line@ และการใช้งานการสร้าง Line@ และการใช้งาน
การสร้าง Line@ และการใช้งาน
 
การใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอ
การใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอการใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอ
การใช้งาน Twitter และโปรแกรมตัดต่อวีดีโอ
 
กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”
กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”
กำหนดการจัดงานมหกรรมเปิดตัวโครงการ “สินค้าชุมชนขับเคลื่อนเศรษฐกิจฐานราก”
 
กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...
กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...
กำหนดการสัมมนาห้องย่อย Village E-Commerce มหกรรมสินค้าชุมชนขับเคลื่อนเศรษฐกิจ...
 
ใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น
ใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่นใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น
ใบสมัคร ประเภท 1.1 ประเภทศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น
 
ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...
ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...
ใบสมัคร ประเภท 1.2 ประเภทวิทยากรศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุม...
 
ใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่น
ใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่นใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่น
ใบสมัคร ประเภท 1.3 ประเภทผู้ประกอบการร้านค้าออนไลน์ดีเด่น
 
การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...
การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...
การประกวดศูนย์การเรียนรู้ ICT ชุมชนหรือศูนย์ดิจิทัลชุมชนดีเด่น และบุคคลดีเด่น...
 
40 ครูช่างศิลปหัตถกรรม ประจำปี 2557
40 ครูช่างศิลปหัตถกรรม ประจำปี 255740 ครูช่างศิลปหัตถกรรม ประจำปี 2557
40 ครูช่างศิลปหัตถกรรม ประจำปี 2557
 
หวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะ
หวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะหวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะ
หวัดเจ็บคอหายได้ ไม่ต้องใช้ยาปฏิชีวนะ
 
Ecommerce โอกาสทองของคนยุคใหม่
Ecommerce โอกาสทองของคนยุคใหม่Ecommerce โอกาสทองของคนยุคใหม่
Ecommerce โอกาสทองของคนยุคใหม่
 
Social media for pr กรมส่งเสริมการเกษตร
Social media for pr กรมส่งเสริมการเกษตร Social media for pr กรมส่งเสริมการเกษตร
Social media for pr กรมส่งเสริมการเกษตร
 
Social media for pr สปสช
Social media for pr สปสชSocial media for pr สปสช
Social media for pr สปสช
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 

Xml overview

  • 2. Markup Language GML SGML WML ..ML
  • 3. Markup Language A Markup Language is a computer language that specifies the structure and content of a document by breaking the document down into the series of elements
  • 4. XML XML stands for eXtensible Markup Language XML is a markup language much like HTML It’s a new markup language,developed by the W3C(www.w3.org),mainly to overcome limitations in HTML XML was designed to describe data XML tags are not predefined in XML.You must define your own tags
  • 5. XML & HTML HTML and XML were designed with different goals HTML was designed to display data and to focus on how data looks XML was designed to describe data and to focus on what data is HTML is about displaying information, XML is about describing information
  • 6. XML & HTML HTML tag : pre-defined tag <b>John</b> XML tag : user-defined tag <Name>John</Name>
  • 7. Markup Language Example Markup Language HTML XML <b>025447891</b> <myphonenumber>025447891</myphonenumber>
  • 8. XML Example XML xml01.xml <?xml version=“1.0”?> <employee> <id>001</id> <name>Prapoj Sukmanont</name> <city>Bangkok</city> <email>prapojs@hotmail.com</email> </employee>
  • 9. Element Structure Element Name <tag> Content </tag> Open Tag(start-tag) Close Tag(end-tag)
  • 10. XML Structure <?xml version=“1.0” ?> root <root> <child> <sub_child> </sub_child> </child> child child <child> <sub_child> </sub_child> sub_child sub_child </child> </root>
  • 11. XML File Structure File name : *.xml Prolog Document Elements
  • 12. Prolog XML Declaration <?xml version=“1.0”?> Document Type Declaration <!DOCTYPE PurchaseOrder SYSTEM “po.dtd”> Processing Instruction(PI) <?xml-stylesheet type=“text/css” href=“test.css”?>
  • 13. Document Elements <employee> <id>001</id> <name>Prasit Lee</name> <city>Bangkok</city> <email>prasitl@hotmail.com</email> </employee>
  • 14. XML File Structure : Prolog File name : *.xml 1. XML Declaration Prolog 2. Document Type Declaration (DTD) 3. Processing Instruction (PI) Document Elements
  • 15. XML Example xml01.xml <?xml version=“1.0” ?> <employee> <id>001</id> <name>Prasit Lee</name> <city>Bangkok</city> <email>prasitl@hotmail.com</email> </employee>
  • 16. Thai Language XML Example xml01th.xml <?xml version=“1.0” encoding=“windows-874”?> <employee> <id>001</id> <name>ประสิ ทธิ ลี</name> <city>กรุ งเทพ</city> <email>prasitl@hotmail.com</email> </employee>
  • 17. XML Benefits Self-describe Data Data Exchange XML Benefits Messaging Format for Application So on… (RSS, ebXML, XML Applications…) CML, MathML, MusicML, VoiceML …
  • 18. Text File & XML File employee.txt employee.xml Text File XML File <?xml version=“1.0” ?> 1,John,Bangkok <employee> 2,David,New York <id>1</id> 3,Peter,London <name>John</name> <city>Bangkok</city> <id>2</id> <name>David</name> <city>New York</city> <id>3</id> <name>Peter</name> <city>London</city> </employee>
  • 19. Data Exchange Example DB Server 1 DB Server 2 XML Parser employee.xml XML Parser XML File Database <?xml version=“1.0” ?> Database <employee> <id>1</id> <name>John</name> <city>Bangkok</city> <id>2</id> <name>David</name> <city>New York</city> <id>3</id> <name>Peter</name> <city>London</city> </employee>
  • 20. XML Processor After the XML document is created, it needs to be evaluated by an application known as an XML processor or XML parser Part of the function of the parser is to interpret the document’s code and verify that it satisfies all of the XML specifications for document structure and syntax Microsoft developed an XML parser called MSXML (msxml.exe) for its Internet Explorer browser
  • 21. Well-Formed XML “A Well-Formed XML document contains no syntax errors and satisfies the specifications for XML codes as laid out by W3C”
  • 22. 1. Root Element <?xml version=“1.0” ?> <employee> <id>001</id> <name>Prapoj Sukmanont</name> Root Element <city>Bangkok</city> <email>prapojs@hotmail.com</email> </employee>
  • 23. 2. Element Naming XML elements must follow these naming rules Names can contain letters,numbers, and other characters.Names must not start with a number or other punctuation characters Names must not start with the letter xml(or XML or Xml ...) Names cannot contain space,(*,? And +) Avoid “-” and “.” in names The “:” should not be used in element names
  • 24. Element Naming : Example <-Company> <9Company> <Company> <.My_company> <_Company> <Name*> <My_company> <Name?> <First-name> <Name+> <Last.name> <xmlbook> <first name> Not OK OK
  • 25. 3. Closed Tag <?xml version=“1.0” ?> <employee> <id>001</id> <name>Prapoj Sukmanont</name> <city>Bangkok</city> <email>prapojs@hotmail.com</email> </employee>
  • 26. 4. Proper Nesting Tag <ID> <ID> <name> <name> </ID> </name> </name> </ID>
  • 27. 5. Case-sensitive <ID> <ID> <name> <name> </Name> </name> </ID> </ID>
  • 28. 6. Attribute Value <employee id=“001”> <name> <employee id=001> </name> <name> </employee> </name> </employee> <employee id=‘001’> <name> </name> </employee>
  • 29. Element Attribute An attribute describes a feature or characteristic of an element .Attributes are often used to provide additional information about an element .The syntax for adding an attribute to an element is <element_name attribute_name=“Attribute value”> … </element_name> Attribute name constraints: The name must begin with a letter or underscore (_) Space are not allowed in attribute names Attribute names should not begin with the text string “xml”
  • 30. Well-Formed XML Example Well-Formed XML xml02.xml <?xml version=“1.0” ?> <employee> <id>001</id> <name prefix=“Mr”>Prapoj Sukmanont</name> <city>Bangkok</city> <email>prapojs@hotmail.com</email> </employee>
  • 31. XML Element Types Normal element <Name>Prasit Lee </Name> Empty element <telephone></telephone> <telephone/>
  • 33. Element Content <Start-tag> Content </End-tag> Nested element Character data Reference Entity CDATA Comment
  • 34. 1. Nested Element … <BOOK> <TITLE> XML Book </TITLE> <AUTHOR>Prasit Lee </AUTHOR> </BOOK>
  • 35. 2. Character Data … <TITLE> XML Book </TITLE> <AUTHOR>Prasit Lee </AUTHOR> …
  • 36. 3. Entity Reference & &amp; < &lt; > &gt; “ &quot; ‘ &apos;
  • 37. XML Example xmlerror1.xml <?xml version=“1.0” ?> <Example> <Statement>if x < y </Statement> </Example> Not XML Well-formed
  • 38. XML Example xml03.xml <?xml version=“1.0” ?> <Example> <Statement>if x &lt; y </Statement> </Example>
  • 39. 4. CDATA Section xml04.xml <?xml version=“1.0”?> <Example> <Statement> <![CDATA[ if x > y and a < b ]]> </Statement> </Example>
  • 40. CDATA Sometimes, an XML document needs to store large blocks of text containing the < and > symbols. In that case, it would be cumbersome to replace all of the < and > symbols with &lt; and &gt; character reference, the code itself will be difficult to read Instead of using character references, you can place large blocks of text into a CDATA section A CDATA section is a large block text that the XML processor interprets only a text <![CDATA[ Text block ]]>
  • 41. 5. Comment … <BOOK> <!-- This is comment create by “Prasit” 03.02.2012--> <TITLE> XML Book </TITLE> <AUTHOR>Prasit Lee </AUTHOR> </BOOK>