SlideShare a Scribd company logo
XML FOR DUMMIES

Book author: Lucinda Dykes and Ed Tittle
Part 1 : XML Basics
Lecture 1 : Getting to know XML
http://it-slideshares.blogspot.com
Contents

         1       Introducing XML



        2        Examining the many uses of XML



        3       Deciphering what is XML and what XML isn’t



        4        Building an XML document




http://it-slideshares.blogspot.com
1. Introducing XML
    XML   is markup language.
    XML isn’t limited to a particular set of markup.
    The flexibility of XML has led to its wide-spread use for
     exchanging data in a multitude of forms.
    With XML, you can send the same information to
     various locations.
    You can customize the informtion sent out so it’s
     displayed appropriately on the various devices.
    Getting started with XML isn’t difficult.




http://it-slideshares.blogspot.com
2.Examining the many uses of
    Mocking up your own markup :
                  XML.
     ● XML is derived from the “mother of all markup
      language”.
        ● XML has no predefined tags, you can create your
      own XML.
        ● You can design your own custom markup language
      but you must to keep rules about the syntax of an XML
      document.
        ●XHTML is yet another markup language: designed as
      a transition language between XML and HTML.




http://it-slideshares.blogspot.com
Examining the many uses of XML(cont..)
      Separating data and context :
         ●XML automatically separates data from context.
         ●XML document no instructions about how to display the
       content contained in the document. It only defines the structure of
       document. You can then add styles.
         ●The same style sheet is used with more than one document.
         ●XML can be combined with both two different types of
       stylesheets : CSS and XSLT for extra versatility.




http://it-slideshares.blogspot.com
   Making information portable :
Examining the many uses of ML(cont..)
           ● XML is all about managing your data.
               ○XML enables you to colect information once and
                     reuse it in a variety of ways.
               ○XML data is not limited to one application format.
               ○Making information portable does require
        planning             and design before the information is
        collected.


       XML mean business.
          ●XML provides an easy way for businesses to manage
        and share information.




 http://it-slideshares.blogspot.com
3. Deciphering what is XML and what XML isn’t.
        3.1 Figuring out what XML is good for
         Classifying information
               ●One of the most useful function of XML involves classifying
          information.
                ●Example: Book can be classified in many ways, but we kind of like
          the following classification sheme:
                    ◦ Tile
                    ◦ Author
                    ◦ Publisher
                    ◦ Price
                    ◦ Content Type(Fiction, Nonfiction)
                    ◦ Format(Paperback, hardback)
                    ◦ ISBN




    http://it-slideshares.blogspot.com
3.1 Figuring out what XML is good for
         Classifying information
             ●Using XML, you can create tags to classify this information. The following code
          shows a possible XML format for one book:


           <book>
                 <title>Night Fall</title>
                 <author>Demille, Nelson</author>
                 <publisher>Warner</publisher>
                 <price>$26.95</price>
                 <contentType>Fiction</contentType>
                 <format>Hardback</format>
                 <isbn>0446576638</isbn>
           </book>
             ●Giving your tags meaningful name that actually reflect the content makes it
          easier to work with the information.
             ●Classifying the information as shown here makes possible for you to search for
          and retrieve any item with ease.




   http://it-slideshares.blogspot.com
Figuring out what XML is good for(cont..)
         Enforcing rules on your data.
              ●XML excels at allowing you to create rules for the format of your          data.Using
          either Document Type Definitions(DTDs) or XML Scheme to             validate your data gives
          you two immediate advantages.
                     ◦ It help ensure accuracy of information you collect .
                     ◦ It helps ensure that the information gathered is in the most
          usable format for your business needs.

             ●Taking another look at the XML we came up with in the previous              section for
          your imaginary book business, you can see several items              for which you might
          want to include rules to govern how the data is          formatted, such as:
                      ◦ A currency format for the price
                       ◦ A number format for the ISBN
                       ◦ A restricted selection for content type (Fiction or Nonfiction)
                       ◦ A restricted selection for format (Paperback or Hardback)




   http://it-slideshares.blogspot.com
Figuring out what XML is good for(cont..)
         Outputting information in a variety of ways
             ●The great thing about XML documents is that they’re not limited to any
          particular form of output.
             ●In many cases, XML documents are used with stylesheets to provide
          high-quality output on-screen.
             ●You can use the same data, however, to send information to a speech-
          synthesis program that reads the text to a person who is vision
          impaired.
            ●Alternatively, that same data might also create output on a
                           Braille reader.The same document with a layout program
          and             a stylesheet also might be used for high-quality printouts.
                (Figure 1-1 gives you an idea of the infinite variety of output
          choices that XML makes available to you.)




   http://it-slideshares.blogspot.com
● The beauty of this concept is that you never need to fuss and fidget
with the XML data to create output for different devices. You need only
use different pieces of software that can read XML and can provide the
output for a particular format or output device.

http://it-slideshares.blogspot.com
 Using the same data across platforms
       Figuring out what XML is good
         Figuring out what XML is good for(cont..)
        ● Suppose you want to exchange database information across the
      Web, use a Web browser to send information from a user
      questionnaire back to a Web server. To accomplish this task,     you need
      a document format that is:
          ♦ Extensible: An extensible format is one that can be tailored or
      customizeed for specific applications.
         ♦ Open: It’s well documented and widely available.
          ♦Nonproprietary: It’s expressed in an accepted or standard form of
      notation that isn’t the exclisive property of some individual,  company,
      or organnization.




http://it-slideshares.blogspot.com
3.2 Beyond the Hype: What XML anymore.
   It’s not just for Web pages Isn’t.
           ● If you display an XML document on the Web in its raw form, all you’ll see is
      the XML markup itself. Figure 1-2 show an XML file in IE , not much to look at.




And there’s even less to see when this same file is displayed in
Netcape Navigator as shown in figure 1-3:
⇒Browser support for XML is limited and variable.
● But for now XML works well in Web pages only when combined
with another language (CSS) or XML technology (XSLT) to format
the display of the XML information. Figure 1-4 shows our XML file
when it’s combined with smple CSS syle instructions now.
Beyond the Hype: What XML isn’t.(cont..)
 It’s   not database.
 ● You could use XML as a database for a small amount of data, but it wouldn’t be
  effiecient to use XML as a database for large amounts of data.
 ● XML documents work well for both input and ouput, going to and from a
  database, and you can also use them to display database information in print or on
  the Web.
 It’s   not a programming language.
 ● XML is a markup language, not programming language
 ● Although XML can used with programming languages for certain types of
  application development.
 ● XML doesn’t include any of these features.




    http://it-slideshares.blogspot.com
4. Building XML documents.
    You can buiding XML document with notepad editor,but XML editors
     hava two distinct fearures that are essential for creating good XML
     documents:
      ♦ Ease if markup: XML editors, such as XMLSpy, Turbo XML, and XML
     Pro, can add markup to text as simply as you can turn text bold in today’s
     word processors. All XML editors provide the capability to select text
     with a cursor and choose which markup you want to apply from a menu
     of selections.
      ♦ Automatic enforcement of XML document rules: For many
     applications, XML editors can determine which element types can appear
     in certain contexts. In this way, the editor helps you avoid making syntax
     or structure mistakes.
    XML is a subset of SGML.




http://it-slideshares.blogspot.com
THANK YOU
THE END CHAPTER ONE
   http://it-slideshares.blogspot.com

More Related Content

What's hot

Web programming xml
Web programming  xmlWeb programming  xml
Web programming xml
Uma mohan
 
Understanding XML DOM
Understanding XML DOMUnderstanding XML DOM
Understanding XML DOM
Om Vikram Thapa
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
BG Java EE Course
 
XML
XMLXML
Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)
STC-Philadelphia Metro Chapter
 
XML and XSLT
XML and XSLTXML and XSLT
XML and XSLT
Andrew Savory
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
Himanshu Kumar
 
XML
XMLXML
XML Document Object Model (DOM)
XML Document Object Model (DOM)XML Document Object Model (DOM)
XML Document Object Model (DOM)
BOSS Webtech
 
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
Manish Chaurasia
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
www.myassignmenthelp.net
 
WEB TECHNOLOGIES XML
WEB TECHNOLOGIES XMLWEB TECHNOLOGIES XML
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
Ann Joseph
 
Dom Hackking & Security - BlackHat Preso
Dom Hackking & Security - BlackHat PresoDom Hackking & Security - BlackHat Preso
Dom Hackking & Security - BlackHat PresoShreeraj Shah
 
Xml ppt
Xml pptXml ppt
Xml ppt
seemadav1
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
Gtu Booker
 

What's hot (18)

Web programming xml
Web programming  xmlWeb programming  xml
Web programming xml
 
Xml
XmlXml
Xml
 
Understanding XML DOM
Understanding XML DOMUnderstanding XML DOM
Understanding XML DOM
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML
XMLXML
XML
 
Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)
 
XML and XSLT
XML and XSLTXML and XSLT
XML and XSLT
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
 
XML
XMLXML
XML
 
XML Document Object Model (DOM)
XML Document Object Model (DOM)XML Document Object Model (DOM)
XML Document Object Model (DOM)
 
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
 
WEB TECHNOLOGIES XML
WEB TECHNOLOGIES XMLWEB TECHNOLOGIES XML
WEB TECHNOLOGIES XML
 
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
 
Dom Hackking & Security - BlackHat Preso
Dom Hackking & Security - BlackHat PresoDom Hackking & Security - BlackHat Preso
Dom Hackking & Security - BlackHat Preso
 
Xml ppt
Xml pptXml ppt
Xml ppt
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 

Viewers also liked

Lecture 4 - Adding XTHML for the Web
Lecture  4 - Adding XTHML for the WebLecture  4 - Adding XTHML for the Web
Lecture 4 - Adding XTHML for the Web
phanleson
 
Lecture 07 - Executive Information Systems and the Data Warehouse
Lecture 07 - Executive Information Systems and the Data WarehouseLecture 07 - Executive Information Systems and the Data Warehouse
Lecture 07 - Executive Information Systems and the Data Warehouse
phanleson
 
Authentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless ProtocolsAuthentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless Protocols
phanleson
 
Mobile Security - Wireless hacking
Mobile Security - Wireless hackingMobile Security - Wireless hacking
Mobile Security - Wireless hacking
phanleson
 
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
phanleson
 
Firewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth FirewallsFirewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth Firewalls
phanleson
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applications
phanleson
 

Viewers also liked (7)

Lecture 4 - Adding XTHML for the Web
Lecture  4 - Adding XTHML for the WebLecture  4 - Adding XTHML for the Web
Lecture 4 - Adding XTHML for the Web
 
Lecture 07 - Executive Information Systems and the Data Warehouse
Lecture 07 - Executive Information Systems and the Data WarehouseLecture 07 - Executive Information Systems and the Data Warehouse
Lecture 07 - Executive Information Systems and the Data Warehouse
 
Authentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless ProtocolsAuthentication in wireless - Security in Wireless Protocols
Authentication in wireless - Security in Wireless Protocols
 
Mobile Security - Wireless hacking
Mobile Security - Wireless hackingMobile Security - Wireless hacking
Mobile Security - Wireless hacking
 
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
 
Firewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth FirewallsFirewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth Firewalls
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applications
 

Similar to Lecture 1 - Getting to know XML

Tutor Xml Gxs
Tutor Xml GxsTutor Xml Gxs
Tutor Xml Gxs
nit Allahabad
 
Xml
XmlXml
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xmlsoumya
 
XML1.pptx
XML1.pptxXML1.pptx
eXtensible Markup Language
eXtensible Markup LanguageeXtensible Markup Language
eXtensible Markup LanguageAditya Raj
 
XML - Extensive Markup Language
XML - Extensive Markup LanguageXML - Extensive Markup Language
XML - Extensive Markup Language
wahidullah mudaser
 
Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108
nit Allahabad
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
Bikash chhetri
 
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
Dennis Pipper
 
Module 5 XML Notes.pdf
Module 5 XML Notes.pdfModule 5 XML Notes.pdf
Module 5 XML Notes.pdf
ssuser21721b
 
XML-INTRODUCTION.pdf
XML-INTRODUCTION.pdfXML-INTRODUCTION.pdf
XML-INTRODUCTION.pdf
KGSCSEPSGCT
 
Oracle soa xml faq
Oracle soa xml faqOracle soa xml faq
Oracle soa xml faq
xavier john
 
Extensible markup language ppt as part of Internet Technology
Extensible markup language ppt as part of Internet TechnologyExtensible markup language ppt as part of Internet Technology
Extensible markup language ppt as part of Internet Technology
SherinRappai
 
xml and xhtml.pptx
xml and xhtml.pptxxml and xhtml.pptx
xml and xhtml.pptx
ssusere16bd9
 
Xml viva questions
Xml viva questionsXml viva questions
Xml viva questions
Vipul Naik
 
Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01
Niraj Bharambe
 
Xml material
Xml materialXml material
Xml material
xavier john
 

Similar to Lecture 1 - Getting to know XML (20)

Tutor Xml Gxs
Tutor Xml GxsTutor Xml Gxs
Tutor Xml Gxs
 
Xml
XmlXml
Xml
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
XML1.pptx
XML1.pptxXML1.pptx
XML1.pptx
 
eXtensible Markup Language
eXtensible Markup LanguageeXtensible Markup Language
eXtensible Markup Language
 
XML - Extensive Markup Language
XML - Extensive Markup LanguageXML - Extensive Markup Language
XML - Extensive Markup Language
 
Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
93 peter butterfield
93 peter butterfield93 peter butterfield
93 peter butterfield
 
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
 
Module 5 XML Notes.pdf
Module 5 XML Notes.pdfModule 5 XML Notes.pdf
Module 5 XML Notes.pdf
 
Xml
XmlXml
Xml
 
XML-INTRODUCTION.pdf
XML-INTRODUCTION.pdfXML-INTRODUCTION.pdf
XML-INTRODUCTION.pdf
 
Oracle soa xml faq
Oracle soa xml faqOracle soa xml faq
Oracle soa xml faq
 
XML Bible
XML BibleXML Bible
XML Bible
 
Extensible markup language ppt as part of Internet Technology
Extensible markup language ppt as part of Internet TechnologyExtensible markup language ppt as part of Internet Technology
Extensible markup language ppt as part of Internet Technology
 
xml and xhtml.pptx
xml and xhtml.pptxxml and xhtml.pptx
xml and xhtml.pptx
 
Xml viva questions
Xml viva questionsXml viva questions
Xml viva questions
 
Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01
 
Xml material
Xml materialXml material
Xml material
 

More from phanleson

E-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server AttacksE-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server Attacks
phanleson
 
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designHBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table design
phanleson
 
HBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - OperationsHBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - Operations
phanleson
 
Hbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBaseHbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBase
phanleson
 
Learning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlibLearning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlib
phanleson
 
Learning spark ch10 - Spark Streaming
Learning spark ch10 - Spark StreamingLearning spark ch10 - Spark Streaming
Learning spark ch10 - Spark Streaming
phanleson
 
Learning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQLLearning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQL
phanleson
 
Learning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a ClusterLearning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a Cluster
phanleson
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programming
phanleson
 
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your DataLearning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your Data
phanleson
 
Learning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value PairsLearning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value Pairs
phanleson
 
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
phanleson
 
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about LibertagiaHướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
phanleson
 
Lecture 2 - Using XML for Many Purposes
Lecture 2 - Using XML for Many PurposesLecture 2 - Using XML for Many Purposes
Lecture 2 - Using XML for Many Purposes
phanleson
 
SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19
phanleson
 
Lecture 18 - Model-Driven Service Development
Lecture 18 - Model-Driven Service DevelopmentLecture 18 - Model-Driven Service Development
Lecture 18 - Model-Driven Service Development
phanleson
 
Lecture 15 - Technical Details
Lecture 15 - Technical DetailsLecture 15 - Technical Details
Lecture 15 - Technical Details
phanleson
 
Lecture 10 - Message Exchange Patterns
Lecture 10 - Message Exchange PatternsLecture 10 - Message Exchange Patterns
Lecture 10 - Message Exchange Patterns
phanleson
 
Lecture 9 - SOA in Context
Lecture 9 - SOA in ContextLecture 9 - SOA in Context
Lecture 9 - SOA in Context
phanleson
 
Lecture 07 - Business Process Management
Lecture 07 - Business Process ManagementLecture 07 - Business Process Management
Lecture 07 - Business Process Management
phanleson
 

More from phanleson (20)

E-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server AttacksE-Commerce Security - Application attacks - Server Attacks
E-Commerce Security - Application attacks - Server Attacks
 
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designHBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table design
 
HBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - OperationsHBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - Operations
 
Hbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBaseHbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBase
 
Learning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlibLearning spark ch11 - Machine Learning with MLlib
Learning spark ch11 - Machine Learning with MLlib
 
Learning spark ch10 - Spark Streaming
Learning spark ch10 - Spark StreamingLearning spark ch10 - Spark Streaming
Learning spark ch10 - Spark Streaming
 
Learning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQLLearning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQL
 
Learning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a ClusterLearning spark ch07 - Running on a Cluster
Learning spark ch07 - Running on a Cluster
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programming
 
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your DataLearning spark ch05 - Loading and Saving Your Data
Learning spark ch05 - Loading and Saving Your Data
 
Learning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value PairsLearning spark ch04 - Working with Key/Value Pairs
Learning spark ch04 - Working with Key/Value Pairs
 
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with SparkLearning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
 
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about LibertagiaHướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
 
Lecture 2 - Using XML for Many Purposes
Lecture 2 - Using XML for Many PurposesLecture 2 - Using XML for Many Purposes
Lecture 2 - Using XML for Many Purposes
 
SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19
 
Lecture 18 - Model-Driven Service Development
Lecture 18 - Model-Driven Service DevelopmentLecture 18 - Model-Driven Service Development
Lecture 18 - Model-Driven Service Development
 
Lecture 15 - Technical Details
Lecture 15 - Technical DetailsLecture 15 - Technical Details
Lecture 15 - Technical Details
 
Lecture 10 - Message Exchange Patterns
Lecture 10 - Message Exchange PatternsLecture 10 - Message Exchange Patterns
Lecture 10 - Message Exchange Patterns
 
Lecture 9 - SOA in Context
Lecture 9 - SOA in ContextLecture 9 - SOA in Context
Lecture 9 - SOA in Context
 
Lecture 07 - Business Process Management
Lecture 07 - Business Process ManagementLecture 07 - Business Process Management
Lecture 07 - Business Process Management
 

Recently uploaded

Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

Lecture 1 - Getting to know XML

  • 1. XML FOR DUMMIES Book author: Lucinda Dykes and Ed Tittle Part 1 : XML Basics Lecture 1 : Getting to know XML http://it-slideshares.blogspot.com
  • 2. Contents 1 Introducing XML 2 Examining the many uses of XML 3 Deciphering what is XML and what XML isn’t 4 Building an XML document http://it-slideshares.blogspot.com
  • 3. 1. Introducing XML  XML is markup language.  XML isn’t limited to a particular set of markup.  The flexibility of XML has led to its wide-spread use for exchanging data in a multitude of forms.  With XML, you can send the same information to various locations.  You can customize the informtion sent out so it’s displayed appropriately on the various devices.  Getting started with XML isn’t difficult. http://it-slideshares.blogspot.com
  • 4. 2.Examining the many uses of Mocking up your own markup : XML. ● XML is derived from the “mother of all markup language”. ● XML has no predefined tags, you can create your own XML. ● You can design your own custom markup language but you must to keep rules about the syntax of an XML document. ●XHTML is yet another markup language: designed as a transition language between XML and HTML. http://it-slideshares.blogspot.com
  • 5. Examining the many uses of XML(cont..)  Separating data and context : ●XML automatically separates data from context. ●XML document no instructions about how to display the content contained in the document. It only defines the structure of document. You can then add styles. ●The same style sheet is used with more than one document. ●XML can be combined with both two different types of stylesheets : CSS and XSLT for extra versatility. http://it-slideshares.blogspot.com
  • 6. Making information portable : Examining the many uses of ML(cont..) ● XML is all about managing your data. ○XML enables you to colect information once and reuse it in a variety of ways. ○XML data is not limited to one application format. ○Making information portable does require planning and design before the information is collected.  XML mean business. ●XML provides an easy way for businesses to manage and share information. http://it-slideshares.blogspot.com
  • 7. 3. Deciphering what is XML and what XML isn’t. 3.1 Figuring out what XML is good for  Classifying information ●One of the most useful function of XML involves classifying information. ●Example: Book can be classified in many ways, but we kind of like the following classification sheme: ◦ Tile ◦ Author ◦ Publisher ◦ Price ◦ Content Type(Fiction, Nonfiction) ◦ Format(Paperback, hardback) ◦ ISBN http://it-slideshares.blogspot.com
  • 8. 3.1 Figuring out what XML is good for  Classifying information ●Using XML, you can create tags to classify this information. The following code shows a possible XML format for one book: <book> <title>Night Fall</title> <author>Demille, Nelson</author> <publisher>Warner</publisher> <price>$26.95</price> <contentType>Fiction</contentType> <format>Hardback</format> <isbn>0446576638</isbn> </book> ●Giving your tags meaningful name that actually reflect the content makes it easier to work with the information. ●Classifying the information as shown here makes possible for you to search for and retrieve any item with ease. http://it-slideshares.blogspot.com
  • 9. Figuring out what XML is good for(cont..)  Enforcing rules on your data. ●XML excels at allowing you to create rules for the format of your data.Using either Document Type Definitions(DTDs) or XML Scheme to validate your data gives you two immediate advantages. ◦ It help ensure accuracy of information you collect . ◦ It helps ensure that the information gathered is in the most usable format for your business needs. ●Taking another look at the XML we came up with in the previous section for your imaginary book business, you can see several items for which you might want to include rules to govern how the data is formatted, such as: ◦ A currency format for the price ◦ A number format for the ISBN ◦ A restricted selection for content type (Fiction or Nonfiction) ◦ A restricted selection for format (Paperback or Hardback) http://it-slideshares.blogspot.com
  • 10. Figuring out what XML is good for(cont..)  Outputting information in a variety of ways ●The great thing about XML documents is that they’re not limited to any particular form of output. ●In many cases, XML documents are used with stylesheets to provide high-quality output on-screen. ●You can use the same data, however, to send information to a speech- synthesis program that reads the text to a person who is vision impaired. ●Alternatively, that same data might also create output on a Braille reader.The same document with a layout program and a stylesheet also might be used for high-quality printouts. (Figure 1-1 gives you an idea of the infinite variety of output choices that XML makes available to you.) http://it-slideshares.blogspot.com
  • 11. ● The beauty of this concept is that you never need to fuss and fidget with the XML data to create output for different devices. You need only use different pieces of software that can read XML and can provide the output for a particular format or output device. http://it-slideshares.blogspot.com
  • 12.  Using the same data across platforms Figuring out what XML is good Figuring out what XML is good for(cont..) ● Suppose you want to exchange database information across the Web, use a Web browser to send information from a user questionnaire back to a Web server. To accomplish this task, you need a document format that is: ♦ Extensible: An extensible format is one that can be tailored or customizeed for specific applications. ♦ Open: It’s well documented and widely available. ♦Nonproprietary: It’s expressed in an accepted or standard form of notation that isn’t the exclisive property of some individual, company, or organnization. http://it-slideshares.blogspot.com
  • 13. 3.2 Beyond the Hype: What XML anymore. It’s not just for Web pages Isn’t. ● If you display an XML document on the Web in its raw form, all you’ll see is the XML markup itself. Figure 1-2 show an XML file in IE , not much to look at. And there’s even less to see when this same file is displayed in Netcape Navigator as shown in figure 1-3:
  • 14. ⇒Browser support for XML is limited and variable. ● But for now XML works well in Web pages only when combined with another language (CSS) or XML technology (XSLT) to format the display of the XML information. Figure 1-4 shows our XML file when it’s combined with smple CSS syle instructions now.
  • 15. Beyond the Hype: What XML isn’t.(cont..)  It’s not database. ● You could use XML as a database for a small amount of data, but it wouldn’t be effiecient to use XML as a database for large amounts of data. ● XML documents work well for both input and ouput, going to and from a database, and you can also use them to display database information in print or on the Web.  It’s not a programming language. ● XML is a markup language, not programming language ● Although XML can used with programming languages for certain types of application development. ● XML doesn’t include any of these features. http://it-slideshares.blogspot.com
  • 16. 4. Building XML documents.  You can buiding XML document with notepad editor,but XML editors hava two distinct fearures that are essential for creating good XML documents: ♦ Ease if markup: XML editors, such as XMLSpy, Turbo XML, and XML Pro, can add markup to text as simply as you can turn text bold in today’s word processors. All XML editors provide the capability to select text with a cursor and choose which markup you want to apply from a menu of selections. ♦ Automatic enforcement of XML document rules: For many applications, XML editors can determine which element types can appear in certain contexts. In this way, the editor helps you avoid making syntax or structure mistakes.  XML is a subset of SGML. http://it-slideshares.blogspot.com
  • 17. THANK YOU THE END CHAPTER ONE http://it-slideshares.blogspot.com