110 likes | 232 Vues
This guide provides an overview of tools for working with XML on both Windows and Macintosh platforms, including Notepad, Visual Web Developer, and Adobe Dreamweaver. It introduces XML as the Extensible Markup Language designed to transport and store data. You'll learn about the differences between XML and HTML, the benefits and drawbacks of using XML, and the importance of well-formed XML documents. A sample XML file is provided to illustrate its structure and usage, facilitating a solid foundation for beginners in XML.
E N D
XML Tools for working with XML
Tools for Working with XML • WINDOWS tools • Notepad (comes with windows) • Visual Web Developer (Express edition) –http://www.microsoft/com/express/vwd • Microsoft Expression Web – http://www.microsoft.com/expression • Adobe Dreamweaver – http://www.adobe.com/products/dreamweaver
Tools for Working with XML • MACINTOSH tools • Bbedit – http://www.bbedit.com/ • textMate – http://macromates.com/ • WebScripter – http://web-scripter.com • Adobe Dreamweaver – http://www.adobe.com/products/dreamweaver/
Introduction to XML • XML was designed to transport and store data. • HTML was designed to display data.
Introduction to XML • What You Should Already Know • Before you continue you should have a basic understanding of the following: • HTML • JavaScript
Introduction to XML • What is XML? • XML stands for EXtensible Markup Language • XML is a markup language (tag-based) much like HTML • XML was designed to carry data, not to display data • XML tags are not predefined. You must define your own tags • XML is designed to be self-descriptive • XML is a W3C Recommendation
Introduction to XML • What are XML’s benefits? • Separate content from presentation • Create tag sets that target specific problems • Store information in human-readable format • Exchange data among disparate system (i.e web services) • Open format can be processed by any XML-aware program
Introduction to XML • What are some drawbacks of XML? • Not good for storing large amounts of data • Performance can be slower than other methods of storing and retreiving data • Might not be the best format for representing certain data types, like images and other binary data.
Introduction to XML • The Difference Between XML and HTML • XML is not a replacement for HTML. • XML and HTML were designed with different goals: • XML was designed to transport and store data, with focus on what data is. • HTML was designed to display data, with focus on how data looks. • HTML is about displaying information, while XML is about carrying information.
Introduction to XML • XML documents must be “well-formed” • Always have a single root tag • Tags must be properly nested, empty tags always end with /> • Attributes values must be inside quotes, cannot be minimized. • XML documents can be “valid”
Introduction to XML • Sample XML File <BusinessCard> <name>Virgo Armachuelo</name> <phone type=“mobile”>(415)222</phone> <phone type=“work”>(800)111</phone> <phone type=“faxt”>(510)444</phone> <email>virgo@yahoo.com</email> </BusinessCard>