SlideShare une entreprise Scribd logo
1  sur  15
XML FOR DUMMIES
                    http://it-slideshares.blogspot.com
Book author: Lucinda Dykes and Ed Tittle
Part 1 : XML Basics
Chapter 2: Using XML for Many Purposes
Contents

1   Moving Legacy Data to XML


2     The Many Faces of XML



3     Alphabet Soup: Even More XML




    http://it-slideshares.blogspot.com
1. Moving Legacy Data to XML
   You may be able to import, export, and otherwise shape-shift your current data into
    an XML format. Here’s glimpse of what’s possible:
      ♦ Is your data in spreadsheets?
            ○ You can transform this data into XML format by creating an    XML
    schema for the data and then using that schema in Excel      2003 to create a map
    that connects the spreadsheet cell data and th schema.
           ○ You can then export the spreadsheet file as an XML             document.
      ♦ Is your data in database tables?
           ○ In access 2003, you can export data in XML format from one or
    more tables.
          ○ Access can create and export an XML document
           ○ You can also use XMLSpy to import and convert database information
    various databases(including Microsoft SQL Server, Ocracle, MySQL,..)    into XML
    format.
      ♦ Is your data in CSV(comma –separeted values) text files?
            ○ You can use XMLSpy to import and convert these text file into XML
    format.
2. The Many Faces of XML
 Create XML-enabled Web pages.
     ♦ All this XML versatility does require just a little
 extra tweaking.
     ♦ When it comes to actually adding formatting
 information, you hava a couple of options.
     ♦ You can link an XML document to a CSS
 stylesheet. Which would make the information easier
 to read as well as visually interesting.   Figure2-1a. An
 unformatted XML file in a Web browser.
♦ If you use an XSLT stylesheet with your XML document. You can
generate an HTML page with a formatted display; with almost no effort.
  As figure 2-1b, the information is now in a much more usable form for
the Web.




  ♦ This XML file and XSLT stylesheet were both generated from a
  database table in Access 2003.
The Many Faces of XML(cont..)
 Print   publishing with XML.
      ♦ All versions of Word 2003 and Excel 2003 can save
  documents in XML format.
      ♦ XML is now even easier to use with print documents.
      ♦ XML files are text files=>you can open, modify, or create
  them in any text editor.
      ♦ Word 2003 uses a built-in schema document called
  WordML for XML documents.
      ♦ When you open an XML document in Word, you can
  display the document in one of two ways:
           ○ As XML markup with visible XML tags, as shown in
           figure 2-2.
           ○ As content without tags, as shown in figure 2-3.
The Many Faces of XML(cont..).
 Print   publishing with XML.
          ♦ If you have an XSLT stylesheet for your XML document,
  you can open the “transformed” XML document in Word
  by using the drop-down menu from th Open button(File->
  Open,as shown in figure 2-4).




    ♦You can also sava an XML file as a Word template and use it
    to create new XML file in the same format.
           1. Save the XML file in Word, using the .dot extension
           2. Atteach a schema to th tamplate you just saved(Tools->
               Templates and ADD-Ins->XML Schema.)
The Many Faces of XML(cont..).
 Using   XML for business forms.
    ♦ Forms are a very useful way to collect data and can be used in
  text document or on a Web page.
    ♦ You can create XML documents that include HTML forms
  by adding an XSLT stylesheet to generate the HTML form
  markup.
    ♦ You can also use InforPath for create form base on an XML
  document or XML schema,or design your own form.(InfoPath :
  part of Office 2003.).Figure 2-5 shows preview of an InfoPath
  form that was automatically      created from an XML schema and
  then poppulated with data from an XML file.
The Many Faces of XML(cont..).
   Incorporating XML into business processes.
       ♦ Multiple uses of the same set of data.
        ♦ Getting stared in Excel.
         When you open an XML file in Excel, an Open XML dialog box
    displays, and you can choose among the following       three options for
    opening the XML file:
               ○ As an XML list
               ○ As a read-only workbook.
               ○ As a display in the XML Source task pane.
       ♦ The drap-and-drop task-pane method is easy to use and       offers a
    distinct advantage. Figure 2-6, for example,shows an Excel worksheet
    with only three columns if our book data: Tittle,      Author. And ISBN.
The Many Faces of XML(cont..).
Serving  up XML from a database.
      ♦ It should come as surprise to you
 that      you can import or export
 database       information in XML format
 to create XML       files from database
 tables or database tables form XML files.
     ♦ If you are new to database or exist
 database, you can import and export
 XML data by using a program such as
 Access 2003 or XMLSpy.
3. Alphabet Soup: Even More XML.
   List introduce the major members of the XML group:
       ♦ XLink and XPointer : are XML languages for hyperlinks and for document
    components with ID attributes.
       ♦ XSLT, XPath, and XSL-FO: All three of these XML technologies are parts
    of XSL:
          ○XSLT is designed to transform raw XML into complex display formats
    such a tables and indexes.
          ○ XPath is an XML language used to navigate an XML document. XPath is
    used with both XSLT and XPointer.
          ○ XSL-FO(XSL-Formatting Objects) is used for completely formatting the
    layout, style, and pagination of documents that are rendered in print      format.
       ♦ XForms: XForms is an XML language reated to collect and submit form
    information as XML data. XForm uses both XPath and XML schemas.
       ♦ XML Encyption and XML Signature: XML Encyption is an XML language
    developed for secure exchange of XML data. XML Signature is also           used for
    secure data exhchange. If provides syntax and processing       rules for digital
    signature.
Alphabet Soup: Even More the XML group(conti..):
List introduce the major members of XML.(conti..)
        ♦ XML Query: XML Query is an XML language designed
    to query, request information from any collection of XML
    data, whether that data is contained in an XML file      or a
    database.
        ♦ SOAP: SOAP(Simple Object Access Protocol) is an XML
    language used for communication between a Web            page
    reuqesting a Web service        and the Web service
    application.
        ♦ SVG and SMIL: SVG(Scalable Vector Graphics) and SMIL
    (Synchronized Multimedia Integation Language) are XML language
    for multimedia.
Thank you.
The end chapter two.
 http://it-slideshares.blogspot.com

Contenu connexe

Tendances

Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
okmomwalking
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
mcclellm
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
Hardik Patel
 

Tendances (20)

Excel assignment help
Excel assignment helpExcel assignment help
Excel assignment help
 
Class viii ch-2 log on to access
Class  viii ch-2 log on to accessClass  viii ch-2 log on to access
Class viii ch-2 log on to access
 
Databases
DatabasesDatabases
Databases
 
MySQL Crash Course, Chapter 1
MySQL Crash Course, Chapter 1MySQL Crash Course, Chapter 1
MySQL Crash Course, Chapter 1
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms access
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha
 
Ms access Database
Ms access DatabaseMs access Database
Ms access Database
 
MS ACCESS
MS ACCESSMS ACCESS
MS ACCESS
 
Ms access
Ms accessMs access
Ms access
 
Intro to Microsoft Access
Intro to Microsoft AccessIntro to Microsoft Access
Intro to Microsoft Access
 
Ms access
Ms accessMs access
Ms access
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 
XML Technologies
XML TechnologiesXML Technologies
XML Technologies
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Sql basics
Sql basicsSql basics
Sql basics
 
Bcp
BcpBcp
Bcp
 

Similaire à Lecture 2 - Using XML for Many Purposes

eXtensible Markup Language
eXtensible Markup LanguageeXtensible Markup Language
eXtensible Markup Language
Aditya Raj
 
Web programming xml
Web programming  xmlWeb programming  xml
Web programming xml
Uma mohan
 
Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
phanleson
 
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.comXml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
phanleson
 

Similaire à Lecture 2 - Using XML for Many Purposes (20)

XML1.pptx
XML1.pptxXML1.pptx
XML1.pptx
 
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
 
paper about xml
paper about xmlpaper about xml
paper about xml
 
Xml iet 2015
Xml iet 2015Xml iet 2015
Xml iet 2015
 
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
 
eXtensible Markup Language
eXtensible Markup LanguageeXtensible Markup Language
eXtensible Markup Language
 
09 ms excel
09 ms excel09 ms excel
09 ms excel
 
BusinessAnalyst_Training.pptx
BusinessAnalyst_Training.pptxBusinessAnalyst_Training.pptx
BusinessAnalyst_Training.pptx
 
XML/XSLT
XML/XSLTXML/XSLT
XML/XSLT
 
Web programming xml
Web programming  xmlWeb programming  xml
Web programming xml
 
Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
 
Xml material
Xml materialXml material
Xml material
 
Xml material
Xml materialXml material
Xml material
 
Xml material
Xml materialXml material
Xml material
 
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.comXml For Dummies   Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
 
Xml description
Xml descriptionXml description
Xml description
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
Web based application of Live Scoreboard using XML.
Web based application of Live Scoreboard using XML.Web based application of Live Scoreboard using XML.
Web based application of Live Scoreboard using XML.
 

Plus de phanleson

Plus de phanleson (20)

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
 
Mobile Security - Wireless hacking
Mobile Security - Wireless hackingMobile Security - Wireless hacking
Mobile Security - Wireless hacking
 
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
 
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
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applications
 
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 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
 
SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19SOA Course - SOA governance - Lecture 19
SOA Course - SOA governance - Lecture 19
 

Lecture 2 - Using XML for Many Purposes

  • 1. XML FOR DUMMIES http://it-slideshares.blogspot.com Book author: Lucinda Dykes and Ed Tittle Part 1 : XML Basics Chapter 2: Using XML for Many Purposes
  • 2. Contents 1 Moving Legacy Data to XML 2 The Many Faces of XML 3 Alphabet Soup: Even More XML http://it-slideshares.blogspot.com
  • 3. 1. Moving Legacy Data to XML  You may be able to import, export, and otherwise shape-shift your current data into an XML format. Here’s glimpse of what’s possible: ♦ Is your data in spreadsheets? ○ You can transform this data into XML format by creating an XML schema for the data and then using that schema in Excel 2003 to create a map that connects the spreadsheet cell data and th schema. ○ You can then export the spreadsheet file as an XML document. ♦ Is your data in database tables? ○ In access 2003, you can export data in XML format from one or more tables. ○ Access can create and export an XML document ○ You can also use XMLSpy to import and convert database information various databases(including Microsoft SQL Server, Ocracle, MySQL,..) into XML format. ♦ Is your data in CSV(comma –separeted values) text files? ○ You can use XMLSpy to import and convert these text file into XML format.
  • 4. 2. The Many Faces of XML  Create XML-enabled Web pages. ♦ All this XML versatility does require just a little extra tweaking. ♦ When it comes to actually adding formatting information, you hava a couple of options. ♦ You can link an XML document to a CSS stylesheet. Which would make the information easier to read as well as visually interesting. Figure2-1a. An unformatted XML file in a Web browser.
  • 5. ♦ If you use an XSLT stylesheet with your XML document. You can generate an HTML page with a formatted display; with almost no effort. As figure 2-1b, the information is now in a much more usable form for the Web. ♦ This XML file and XSLT stylesheet were both generated from a database table in Access 2003.
  • 6. The Many Faces of XML(cont..)  Print publishing with XML. ♦ All versions of Word 2003 and Excel 2003 can save documents in XML format. ♦ XML is now even easier to use with print documents. ♦ XML files are text files=>you can open, modify, or create them in any text editor. ♦ Word 2003 uses a built-in schema document called WordML for XML documents. ♦ When you open an XML document in Word, you can display the document in one of two ways: ○ As XML markup with visible XML tags, as shown in figure 2-2. ○ As content without tags, as shown in figure 2-3.
  • 7.
  • 8. The Many Faces of XML(cont..).  Print publishing with XML. ♦ If you have an XSLT stylesheet for your XML document, you can open the “transformed” XML document in Word by using the drop-down menu from th Open button(File-> Open,as shown in figure 2-4). ♦You can also sava an XML file as a Word template and use it to create new XML file in the same format. 1. Save the XML file in Word, using the .dot extension 2. Atteach a schema to th tamplate you just saved(Tools-> Templates and ADD-Ins->XML Schema.)
  • 9. The Many Faces of XML(cont..).  Using XML for business forms. ♦ Forms are a very useful way to collect data and can be used in text document or on a Web page. ♦ You can create XML documents that include HTML forms by adding an XSLT stylesheet to generate the HTML form markup. ♦ You can also use InforPath for create form base on an XML document or XML schema,or design your own form.(InfoPath : part of Office 2003.).Figure 2-5 shows preview of an InfoPath form that was automatically created from an XML schema and then poppulated with data from an XML file.
  • 10.
  • 11. The Many Faces of XML(cont..).  Incorporating XML into business processes. ♦ Multiple uses of the same set of data. ♦ Getting stared in Excel. When you open an XML file in Excel, an Open XML dialog box displays, and you can choose among the following three options for opening the XML file: ○ As an XML list ○ As a read-only workbook. ○ As a display in the XML Source task pane. ♦ The drap-and-drop task-pane method is easy to use and offers a distinct advantage. Figure 2-6, for example,shows an Excel worksheet with only three columns if our book data: Tittle, Author. And ISBN.
  • 12. The Many Faces of XML(cont..). Serving up XML from a database. ♦ It should come as surprise to you that you can import or export database information in XML format to create XML files from database tables or database tables form XML files. ♦ If you are new to database or exist database, you can import and export XML data by using a program such as Access 2003 or XMLSpy.
  • 13. 3. Alphabet Soup: Even More XML.  List introduce the major members of the XML group: ♦ XLink and XPointer : are XML languages for hyperlinks and for document components with ID attributes. ♦ XSLT, XPath, and XSL-FO: All three of these XML technologies are parts of XSL: ○XSLT is designed to transform raw XML into complex display formats such a tables and indexes. ○ XPath is an XML language used to navigate an XML document. XPath is used with both XSLT and XPointer. ○ XSL-FO(XSL-Formatting Objects) is used for completely formatting the layout, style, and pagination of documents that are rendered in print format. ♦ XForms: XForms is an XML language reated to collect and submit form information as XML data. XForm uses both XPath and XML schemas. ♦ XML Encyption and XML Signature: XML Encyption is an XML language developed for secure exchange of XML data. XML Signature is also used for secure data exhchange. If provides syntax and processing rules for digital signature.
  • 14. Alphabet Soup: Even More the XML group(conti..): List introduce the major members of XML.(conti..) ♦ XML Query: XML Query is an XML language designed to query, request information from any collection of XML data, whether that data is contained in an XML file or a database. ♦ SOAP: SOAP(Simple Object Access Protocol) is an XML language used for communication between a Web page reuqesting a Web service and the Web service application. ♦ SVG and SMIL: SVG(Scalable Vector Graphics) and SMIL (Synchronized Multimedia Integation Language) are XML language for multimedia.
  • 15. Thank you. The end chapter two. http://it-slideshares.blogspot.com