SlideShare a Scribd company logo
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.
Lecture 2 - Using XML for Many Purposes
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.
Lecture 2 - Using XML for Many Purposes
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

More Related Content

PPTX
Introduction to SQL
PDF
light_xml
PPT
Intro databases (Table, Record, Field)
PPTX
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
PDF
001.general
PDF
Access 02
PDF
PPTX
Ms access 2007
Introduction to SQL
light_xml
Intro databases (Table, Record, Field)
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
001.general
Access 02
Ms access 2007

What's hot (20)

PDF
Excel assignment help
PPTX
Class viii ch-2 log on to access
PPTX
PPT
MySQL Crash Course, Chapter 1
PPT
B.sc i agri u 4 introduction to ms access
PDF
Access 2010 Unit A PPT
PPTX
Tutorial for using SQL in Microsoft Access
PPTX
Ms access ppt 2017 by Gopal saha
DOC
Ms access Database
PPTX
PPTX
Ms access
PDF
Intro to Microsoft Access
PPTX
Ms access
PPTX
Ms access 2010
PPT
XML Technologies
PPTX
Database Management System
DOCX
Introduction to xml
PPT
Introduction to microsoft access
PPTX
Sql basics
PPT
Excel assignment help
Class viii ch-2 log on to access
MySQL Crash Course, Chapter 1
B.sc i agri u 4 introduction to ms access
Access 2010 Unit A PPT
Tutorial for using SQL in Microsoft Access
Ms access ppt 2017 by Gopal saha
Ms access Database
Ms access
Intro to Microsoft Access
Ms access
Ms access 2010
XML Technologies
Database Management System
Introduction to xml
Introduction to microsoft access
Sql basics
Ad

Similar to Lecture 2 - Using XML for Many Purposes (20)

PPTX
PPTX
Extensible markup language ppt as part of Internet Technology
PDF
xml2cdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc vb.pdf
DOCX
PPT
Xml iet 2015
PPT
01 Xml Begin
DOCX
PPS
eXtensible Markup Language
PPT
09 ms excel
PPTX
BusinessAnalyst_Training.pptx
PPT
XML/XSLT
PPTX
Web programming xml
PPT
Lecture 1 - Getting to know XML
DOCX
Xml material
DOCX
Xml material
DOCX
Xml material
PPTX
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
PPT
Xml description
PDF
XMLin Web development and Applications.pdf
PDF
Schaum s Outline of XML 1st Edition Ed Tittel
Extensible markup language ppt as part of Internet Technology
xml2cdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc vb.pdf
Xml iet 2015
01 Xml Begin
eXtensible Markup Language
09 ms excel
BusinessAnalyst_Training.pptx
XML/XSLT
Web programming xml
Lecture 1 - Getting to know XML
Xml material
Xml material
Xml material
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
Xml description
XMLin Web development and Applications.pdf
Schaum s Outline of XML 1st Edition Ed Tittel
Ad

More from phanleson (20)

PDF
Learning spark ch01 - Introduction to Data Analysis with Spark
PPT
Firewall - Network Defense in Depth Firewalls
PPT
Mobile Security - Wireless hacking
PPT
Authentication in wireless - Security in Wireless Protocols
PPT
E-Commerce Security - Application attacks - Server Attacks
PPT
Hacking web applications
PPTX
HBase In Action - Chapter 04: HBase table design
PPT
HBase In Action - Chapter 10 - Operations
PPT
Hbase in action - Chapter 09: Deploying HBase
PPTX
Learning spark ch11 - Machine Learning with MLlib
PPTX
Learning spark ch10 - Spark Streaming
PPTX
Learning spark ch09 - Spark SQL
PPT
Learning spark ch07 - Running on a Cluster
PPTX
Learning spark ch06 - Advanced Spark Programming
PPTX
Learning spark ch05 - Loading and Saving Your Data
PPTX
Learning spark ch04 - Working with Key/Value Pairs
PPTX
Learning spark ch01 - Introduction to Data Analysis with Spark
PPT
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
PPTX
Lecture 4 - Adding XTHML for the Web
PPTX
SOA Course - SOA governance - Lecture 19
Learning spark ch01 - Introduction to Data Analysis with Spark
Firewall - Network Defense in Depth Firewalls
Mobile Security - Wireless hacking
Authentication in wireless - Security in Wireless Protocols
E-Commerce Security - Application attacks - Server Attacks
Hacking web applications
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 10 - Operations
Hbase in action - Chapter 09: Deploying HBase
Learning spark ch11 - Machine Learning with MLlib
Learning spark ch10 - Spark Streaming
Learning spark ch09 - Spark SQL
Learning spark ch07 - Running on a Cluster
Learning spark ch06 - Advanced Spark Programming
Learning spark ch05 - Loading and Saving Your Data
Learning spark ch04 - Working with Key/Value Pairs
Learning spark ch01 - Introduction to Data Analysis with Spark
Hướng Dẫn Đăng Ký LibertaGia - A guide and introduciton about Libertagia
Lecture 4 - Adding XTHML for the Web
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.
  • 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.
  • 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