SlideShare a Scribd company logo
XML For Dummies Book Author : Lucinda Dykes & Ed Tittle Slides Prepared By: Son TN Chapter 17 : Serving Up the Data: XML and Databases
Contents Using Databases with XML Creating XML from Database Files Using XML with Access 2003
17.1 Using Databases with XML The connection between databases and XML is a logical one. All the major database systems — from Oracle to Microsoft SQL Server and beyond — have XML utilities that help you work with XML in the context of the database. Another common use of databases with XML is to let the database serve as an index to the content described with XML. If your solution includes a database, you need to think about how, if at all, your XML documents will interface with the database.
17.1 Using Databases with XML (Cont) For example, an online article archive uses XML as the format for describing articles. An online article archive, takes advantage of the individual strengths of both XML and databases XML provides detailed structural information about the articles, which a database can’t handle very well. The data about the articles (the article metadata) stored in the database can be searched and filtered according to all manner of criteria — something XML isn’t particularly suited for.
17.1.1 Text-intensive XML Text-intensive XML documents can also be configuredto work with a database. For example : A database can store paragraphs of text. An XML document can then connect with the database to import a particular block of text information to add to the content of the XML document.  When the information in the database changes, the content of the XML document changes, too.
17.1.2 Data-intensive XML Interacting with a database is “natural” for XML documents with data intensive content. Businesses commonly use databases to store data intensive content. This content can be imported from a database to populate XML documents with the most current version of the data.  The XML document can then be displayed in print, on a Web page, in an online form, or on a mobile device.
17.2 Creating XML from Database Files In the following section , We focus on using an Access database with XML documents in :  Microsoft Word 2003. Microsoft InfoPath. AltovaXMLSpy.
17.2.1 Using Word 2003 All versions of Word 2003 can save documents in XML format. To import database information into a Word 2003 XML document, follow these steps: Open Word 2003, choose File➪New from the main menu, and then choose XML Document from the New Document task pane on the left. Select View➪Toolbars➪Database. Click the Insert Database icon on the Database toolbar. Click the Get Data button, browse to the bookstore.mdb file, and then click Open. If you want to use Word’s default table formatting options, move on to Step 6. Click the Insert Data button in the Database dialog box. From the Insert Data dialog box, choose All or a range of values for the Insert records option and then click OK.
17.2.1 Using Word 2003 (Cont) Your XML file now displays the database information in a table, as shown in Figure 17-1.
17.2.2 Using InfoPath InfoPath allows you to import database information into a blank InfoPath form. To import database information and create a new InfoPath form, follow these steps: Open InfoPath, and choose File➪Design a Form to open the Design a Form task pane. From the Design a Form task pane, choose New from Data Connection. Choose Database from the Data Connection Wizard and then click Next. Click the Select Database button in the next screen in the wizard, browse to the location of bookstore.mdb, and then click Open. Click Next in the wizard screen and then enter a name for the data connection in the text field labeled “Enter a name for this data connection.”
17.2.2 Using InfoPath (Cont) Click Finish. Insert the cursor in the Drag Data Fields Here box on the form template. Select the dataFields folder from the task pane and then right-click the folder. Choose Section with Controls from the contextual menu. To format the display, right-click the Repeating Section label; choose Borders and Shading; use the main tab of the Borders and Shading dialog box to make your selections for border width, color, and size; and then click the Shading tab to choose a background color. With your data fields out of the way, insert the cursor into the Drag Query Fields Here box on the form template. Select the queryFields folder from the task pane, and right-click the folder.
17.2.2 Using InfoPath (Cont) Choose Section with Controls from the contextual menu. Put the cursor in the Query box, and add a title for this box. Do the same in the Data box (we used Book Query and Book Data for our titles). In the area that says Click to Add a Title, enter a title for your form. In the area that says Click to Add Form Content, add some instructions for form users. Choose File➪Save and then click Save in the Microsoft Office InfoPath window to save the form design changes. Enter a name for your form (we used Book.xsn) and then click Save. Choose File➪PreviewForm➪Default to create a functional Preview file, and test out the form!
17.2.2 Using InfoPath (Cont) Figure 17-2 shows the Preview version of the Book form.
17.2.3 Using XMLSpy XMLSpy is a multifaceted XML tool. Follow these steps to import information from a database and create a new XML file: Open XMLSpy, and choose Convert➪Import Database Data from the main menu. In the Import Database data dialog box, choose Convert Database Data into XML, and click OK. Select Microsoft Access (ADO) from the Select a Source Database window and then click Next. In the Select a MS Access Database window, click the Browse button and navigate to bookstore.mdb; then click Next.
17.2.3 Using XMLSpy (Cont) In the Import Database Data window, click the Choose Database Table button. In the Choose a Database Table window, select Book and then click OK. In the Import Database Data window, go to the Import Settings section and choose the Compatible with Schema Data Types option, check the boxes for the Exclude Primary/Foreign Keys and the Create Empty Elements from Empty Fields options, and then click the Import button. Click the Text tab at the bottom of the file to see the underlying markup.
17.2.3 Using XMLSpy (Cont)
17.2.3 Using XMLSpy (Cont) Here’s how to export data from an XML file to a database: Choose File➪Open from the main menu in XMLSpy. Navigate to your XML file in the Open dialog box and then click Open. Choose Convert➪Export to Text Files/Database. From the Export to Text Files/Databases dialog box, select Convert XML into Text Files or Database Data and then click OK. In the Automatic Fields section of the Export to Text Files/Database window, uncheck the Independent Primary Key Counter for Every Element box and then click the Export to Database button. Click OK in the next window (Export to Database) to create the database file.
17.2.3 Using XMLSpy (Cont) Open the database file in Access and then click the Row table to view the table contents, as shown in Figure 17-4.
17.3 Using XML with Access 2003 Using Access 2003, you can import data from an XML file as well as export data as XML files. The import and export methods in Access 2003 also allow you to import and export XML data, schema information, and/or presentation information to and from : Microsoft SQL Server 2000 Desktop Engine,  Microsoft SQL Server 7.0 or later. The Microsoft Jet Database Engine. Access 2003 also supports the use of XSLT files when importing or exporting XML data.
17.3 Using XML with Access 2003 (Cont) Follow these instructions to import data from an XML file into Access 2003: Select File➪New to create a new database file. Select Blank Database from the New list in the New File task pane. Enter a name for the database in the File New Database window and then click Create. To get the import ball rolling, choose File➪Get External Data➪Import. In the Import dialog box, choose XML from the Files of Type dropdown menu and then browse to the location of your XML file. Select your XML file and then click Import.
17.3 Using XML with Access 2003 (Cont) Click the Options button to show all the import options, as shown in Figure 17-5.
17.3 Using XML with Access 2003 (Cont) Follow these instructions to export data from an Access 2003 table to an XML file: Open the database table in Access and then select File➪Export. In the Export dialog box, choose XML in the Save as Type drop-down menu and then click the Export button. (As Figure 17.6 ) Depending on your choices in the Export XML dialog box, Access 2003 will create the following files: ,[object Object]
An XML Schema file
An XSLT file,[object Object]

More Related Content

What's hot

Ms access Database
Ms access DatabaseMs access Database
Ms access Database
Yasir Khan
 
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
Rai University
 
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
jessandy
 
creating data
creating datacreating data
creating data
sabinji
 
Mail Merge - Microsoft Office 2010
Mail Merge - Microsoft Office 2010Mail Merge - Microsoft Office 2010
Mail Merge - Microsoft Office 2010mmarchione
 
MS Access and Database Fundamentals
MS Access and Database FundamentalsMS Access and Database Fundamentals
MS Access and Database Fundamentals
Ananda Gupta
 
Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
Ramesh Pant
 
Access introduction
Access introductionAccess introduction
Access introductionJithin Zcs
 
Ms access
Ms accessMs access
Ms access
Ms accessMs access
Ms access
Pooja Vaidhya
 
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
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
Reshma Arun
 
5 saving data to the database
5 saving data to the database5 saving data to the database
5 saving data to the database
pvenky1578
 
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESSIMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
23HARSHU
 
MS ACCESS
MS ACCESSMS ACCESS
Ms access
Ms accessMs access
Ms access
Shubhanjali -
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
skomadina
 
Ms access notes
Ms access notesMs access notes
Ms access notesIKIARA
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
Alsufaacademy
 

What's hot (20)

Ms access Database
Ms access DatabaseMs access Database
Ms access Database
 
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
 
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
 
creating data
creating datacreating data
creating data
 
Mail Merge - Microsoft Office 2010
Mail Merge - Microsoft Office 2010Mail Merge - Microsoft Office 2010
Mail Merge - Microsoft Office 2010
 
MS Access and Database Fundamentals
MS Access and Database FundamentalsMS Access and Database Fundamentals
MS Access and Database Fundamentals
 
Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
 
Access introduction
Access introductionAccess introduction
Access introduction
 
Ms access
Ms accessMs access
Ms access
 
Ms access
Ms accessMs access
Ms access
 
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
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
 
5 saving data to the database
5 saving data to the database5 saving data to the database
5 saving data to the database
 
Session 1
Session 1Session 1
Session 1
 
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESSIMPORT AND EXPORT UTILITIES IN MS-ACCESS
IMPORT AND EXPORT UTILITIES IN MS-ACCESS
 
MS ACCESS
MS ACCESSMS ACCESS
MS ACCESS
 
Ms access
Ms accessMs access
Ms access
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 
Ms access notes
Ms access notesMs access notes
Ms access notes
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 

Similar to Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases

Lotus Domino
Lotus DominoLotus Domino
Lotus Domino
vijaysapienz
 
Access_lab_manual06.pdf
Access_lab_manual06.pdfAccess_lab_manual06.pdf
Access_lab_manual06.pdf
Aditya Kumar
 
Altering Drop-Down Menus for Admissions IT Service Request Form
Altering Drop-Down Menus for Admissions IT Service Request FormAltering Drop-Down Menus for Admissions IT Service Request Form
Altering Drop-Down Menus for Admissions IT Service Request FormEdwin Jackson
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorialGhazali_MFP
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
Aeric Poon
 
XPages - The Ties That Bind
XPages - The Ties That BindXPages - The Ties That Bind
XPages - The Ties That Bind
Michael McGarel
 
WPF Application
WPF ApplicationWPF Application
WPF Application
Akshay Sharma
 
BI-Publisher-Tutorial-Lesson-2.pdf
BI-Publisher-Tutorial-Lesson-2.pdfBI-Publisher-Tutorial-Lesson-2.pdf
BI-Publisher-Tutorial-Lesson-2.pdf
AhmedChakroun13
 
BI-Publisher-Tutorial-Lesson-1.pdf
BI-Publisher-Tutorial-Lesson-1.pdfBI-Publisher-Tutorial-Lesson-1.pdf
BI-Publisher-Tutorial-Lesson-1.pdf
AhmedChakroun13
 
M s access
M s accessM s access
How to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateHow to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF Template
Feras Ahmad
 
Database as information system
Database as information systemDatabase as information system
Database as information system
KAZEMBETVOnline
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
art02
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation Documentation
ArleneWatson
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
JoshCasas1
 

Similar to Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases (20)

Lotus Domino
Lotus DominoLotus Domino
Lotus Domino
 
Access_lab_manual06.pdf
Access_lab_manual06.pdfAccess_lab_manual06.pdf
Access_lab_manual06.pdf
 
Altering Drop-Down Menus for Admissions IT Service Request Form
Altering Drop-Down Menus for Admissions IT Service Request FormAltering Drop-Down Menus for Admissions IT Service Request Form
Altering Drop-Down Menus for Admissions IT Service Request Form
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorial
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
 
XPages - The Ties That Bind
XPages - The Ties That BindXPages - The Ties That Bind
XPages - The Ties That Bind
 
WPF Application
WPF ApplicationWPF Application
WPF Application
 
BI-Publisher-Tutorial-Lesson-2.pdf
BI-Publisher-Tutorial-Lesson-2.pdfBI-Publisher-Tutorial-Lesson-2.pdf
BI-Publisher-Tutorial-Lesson-2.pdf
 
BI-Publisher-Tutorial-Lesson-1.pdf
BI-Publisher-Tutorial-Lesson-1.pdfBI-Publisher-Tutorial-Lesson-1.pdf
BI-Publisher-Tutorial-Lesson-1.pdf
 
M s access
M s accessM s access
M s access
 
How to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateHow to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF Template
 
Database as information system
Database as information systemDatabase as information system
Database as information system
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
php
phpphp
php
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation Documentation
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 

More from 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
 
Mobile Security - Wireless hacking
Mobile Security - Wireless hackingMobile Security - Wireless hacking
Mobile Security - Wireless hacking
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
 
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
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applications
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 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLphanleson
 
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
 

More from 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 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
 
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
 

Recently uploaded

Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
Globus
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 

Recently uploaded (20)

Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 

Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases

  • 1. XML For Dummies Book Author : Lucinda Dykes & Ed Tittle Slides Prepared By: Son TN Chapter 17 : Serving Up the Data: XML and Databases
  • 2. Contents Using Databases with XML Creating XML from Database Files Using XML with Access 2003
  • 3.
  • 4. 17.1 Using Databases with XML The connection between databases and XML is a logical one. All the major database systems — from Oracle to Microsoft SQL Server and beyond — have XML utilities that help you work with XML in the context of the database. Another common use of databases with XML is to let the database serve as an index to the content described with XML. If your solution includes a database, you need to think about how, if at all, your XML documents will interface with the database.
  • 5. 17.1 Using Databases with XML (Cont) For example, an online article archive uses XML as the format for describing articles. An online article archive, takes advantage of the individual strengths of both XML and databases XML provides detailed structural information about the articles, which a database can’t handle very well. The data about the articles (the article metadata) stored in the database can be searched and filtered according to all manner of criteria — something XML isn’t particularly suited for.
  • 6. 17.1.1 Text-intensive XML Text-intensive XML documents can also be configuredto work with a database. For example : A database can store paragraphs of text. An XML document can then connect with the database to import a particular block of text information to add to the content of the XML document. When the information in the database changes, the content of the XML document changes, too.
  • 7. 17.1.2 Data-intensive XML Interacting with a database is “natural” for XML documents with data intensive content. Businesses commonly use databases to store data intensive content. This content can be imported from a database to populate XML documents with the most current version of the data. The XML document can then be displayed in print, on a Web page, in an online form, or on a mobile device.
  • 8. 17.2 Creating XML from Database Files In the following section , We focus on using an Access database with XML documents in : Microsoft Word 2003. Microsoft InfoPath. AltovaXMLSpy.
  • 9. 17.2.1 Using Word 2003 All versions of Word 2003 can save documents in XML format. To import database information into a Word 2003 XML document, follow these steps: Open Word 2003, choose File➪New from the main menu, and then choose XML Document from the New Document task pane on the left. Select View➪Toolbars➪Database. Click the Insert Database icon on the Database toolbar. Click the Get Data button, browse to the bookstore.mdb file, and then click Open. If you want to use Word’s default table formatting options, move on to Step 6. Click the Insert Data button in the Database dialog box. From the Insert Data dialog box, choose All or a range of values for the Insert records option and then click OK.
  • 10. 17.2.1 Using Word 2003 (Cont) Your XML file now displays the database information in a table, as shown in Figure 17-1.
  • 11. 17.2.2 Using InfoPath InfoPath allows you to import database information into a blank InfoPath form. To import database information and create a new InfoPath form, follow these steps: Open InfoPath, and choose File➪Design a Form to open the Design a Form task pane. From the Design a Form task pane, choose New from Data Connection. Choose Database from the Data Connection Wizard and then click Next. Click the Select Database button in the next screen in the wizard, browse to the location of bookstore.mdb, and then click Open. Click Next in the wizard screen and then enter a name for the data connection in the text field labeled “Enter a name for this data connection.”
  • 12. 17.2.2 Using InfoPath (Cont) Click Finish. Insert the cursor in the Drag Data Fields Here box on the form template. Select the dataFields folder from the task pane and then right-click the folder. Choose Section with Controls from the contextual menu. To format the display, right-click the Repeating Section label; choose Borders and Shading; use the main tab of the Borders and Shading dialog box to make your selections for border width, color, and size; and then click the Shading tab to choose a background color. With your data fields out of the way, insert the cursor into the Drag Query Fields Here box on the form template. Select the queryFields folder from the task pane, and right-click the folder.
  • 13. 17.2.2 Using InfoPath (Cont) Choose Section with Controls from the contextual menu. Put the cursor in the Query box, and add a title for this box. Do the same in the Data box (we used Book Query and Book Data for our titles). In the area that says Click to Add a Title, enter a title for your form. In the area that says Click to Add Form Content, add some instructions for form users. Choose File➪Save and then click Save in the Microsoft Office InfoPath window to save the form design changes. Enter a name for your form (we used Book.xsn) and then click Save. Choose File➪PreviewForm➪Default to create a functional Preview file, and test out the form!
  • 14. 17.2.2 Using InfoPath (Cont) Figure 17-2 shows the Preview version of the Book form.
  • 15. 17.2.3 Using XMLSpy XMLSpy is a multifaceted XML tool. Follow these steps to import information from a database and create a new XML file: Open XMLSpy, and choose Convert➪Import Database Data from the main menu. In the Import Database data dialog box, choose Convert Database Data into XML, and click OK. Select Microsoft Access (ADO) from the Select a Source Database window and then click Next. In the Select a MS Access Database window, click the Browse button and navigate to bookstore.mdb; then click Next.
  • 16. 17.2.3 Using XMLSpy (Cont) In the Import Database Data window, click the Choose Database Table button. In the Choose a Database Table window, select Book and then click OK. In the Import Database Data window, go to the Import Settings section and choose the Compatible with Schema Data Types option, check the boxes for the Exclude Primary/Foreign Keys and the Create Empty Elements from Empty Fields options, and then click the Import button. Click the Text tab at the bottom of the file to see the underlying markup.
  • 18. 17.2.3 Using XMLSpy (Cont) Here’s how to export data from an XML file to a database: Choose File➪Open from the main menu in XMLSpy. Navigate to your XML file in the Open dialog box and then click Open. Choose Convert➪Export to Text Files/Database. From the Export to Text Files/Databases dialog box, select Convert XML into Text Files or Database Data and then click OK. In the Automatic Fields section of the Export to Text Files/Database window, uncheck the Independent Primary Key Counter for Every Element box and then click the Export to Database button. Click OK in the next window (Export to Database) to create the database file.
  • 19. 17.2.3 Using XMLSpy (Cont) Open the database file in Access and then click the Row table to view the table contents, as shown in Figure 17-4.
  • 20. 17.3 Using XML with Access 2003 Using Access 2003, you can import data from an XML file as well as export data as XML files. The import and export methods in Access 2003 also allow you to import and export XML data, schema information, and/or presentation information to and from : Microsoft SQL Server 2000 Desktop Engine, Microsoft SQL Server 7.0 or later. The Microsoft Jet Database Engine. Access 2003 also supports the use of XSLT files when importing or exporting XML data.
  • 21. 17.3 Using XML with Access 2003 (Cont) Follow these instructions to import data from an XML file into Access 2003: Select File➪New to create a new database file. Select Blank Database from the New list in the New File task pane. Enter a name for the database in the File New Database window and then click Create. To get the import ball rolling, choose File➪Get External Data➪Import. In the Import dialog box, choose XML from the Files of Type dropdown menu and then browse to the location of your XML file. Select your XML file and then click Import.
  • 22. 17.3 Using XML with Access 2003 (Cont) Click the Options button to show all the import options, as shown in Figure 17-5.
  • 23.
  • 25.
  • 26. 17.4 Summary In this chapter, you have the opportunity to get some hands-on practice with XML and databases. Using three different software applications (Word, InfoPath, and XMLSpy), you find out how to import data from a database to an XML document and how to export data from an XML document to a database. You also discover how to export data directly from Access 2003 in several different file formats.