SlideShare uma empresa Scribd logo
1 de 25
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]

Mais conteúdo relacionado

Mais procurados

Ms access Database
Ms access DatabaseMs access Database
Ms access DatabaseYasir 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 accessRai 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 accessjessandy
 
creating data
creating datacreating data
creating datasabinji
 
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 FundamentalsAnanda Gupta
 
Access introduction
Access introductionAccess introduction
Access introductionJithin Zcs
 
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 Purposesphanleson
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007Reshma Arun
 
5 saving data to the database
5 saving data to the database5 saving data to the database
5 saving data to the databasepvenky1578
 
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-ACCESS23HARSHU
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksskomadina
 
Ms access notes
Ms access notesMs access notes
Ms access notesIKIARA
 

Mais procurados (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
 

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

Access_lab_manual06.pdf
Access_lab_manual06.pdfAccess_lab_manual06.pdf
Access_lab_manual06.pdfAditya 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 BindMichael McGarel
 
BI-Publisher-Tutorial-Lesson-2.pdf
BI-Publisher-Tutorial-Lesson-2.pdfBI-Publisher-Tutorial-Lesson-2.pdf
BI-Publisher-Tutorial-Lesson-2.pdfAhmedChakroun13
 
BI-Publisher-Tutorial-Lesson-1.pdf
BI-Publisher-Tutorial-Lesson-1.pdfBI-Publisher-Tutorial-Lesson-1.pdf
BI-Publisher-Tutorial-Lesson-1.pdfAhmedChakroun13
 
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 TemplateFeras Ahmad
 
Database as information system
Database as information systemDatabase as information system
Database as information systemKAZEMBETVOnline
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notesart02
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationArleneWatson
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptJoshCasas1
 

Semelhante a 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
 
php
phpphp
php
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
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
 

Mais de 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 Sparkphanleson
 
Firewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth FirewallsFirewall - Network Defense in Depth Firewalls
Firewall - Network Defense in Depth Firewallsphanleson
 
Mobile Security - Wireless hacking
Mobile Security - Wireless hackingMobile Security - Wireless hacking
Mobile Security - Wireless hackingphanleson
 
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 Protocolsphanleson
 
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 Attacksphanleson
 
Hacking web applications
Hacking web applicationsHacking web applications
Hacking web applicationsphanleson
 
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 designphanleson
 
HBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - OperationsHBase In Action - Chapter 10 - Operations
HBase In Action - Chapter 10 - Operationsphanleson
 
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 HBasephanleson
 
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 MLlibphanleson
 
Learning spark ch10 - Spark Streaming
Learning spark ch10 - Spark StreamingLearning spark ch10 - Spark Streaming
Learning spark ch10 - Spark Streamingphanleson
 
Learning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQLLearning spark ch09 - Spark SQL
Learning spark ch09 - Spark SQLphanleson
 
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 Clusterphanleson
 
Learning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark ProgrammingLearning spark ch06 - Advanced Spark Programming
Learning spark ch06 - Advanced Spark Programmingphanleson
 
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 Dataphanleson
 
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 Pairsphanleson
 
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 Sparkphanleson
 
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 Libertagiaphanleson
 
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 Webphanleson
 

Mais 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 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
 

Último

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Último (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

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.