332 likes | 452 Views
1. XML Concepts and Basics. What is XML ?. " XML is a vehicle not only for business-to-business transaction and content management, but for the encoding of transactional data passed from business function to business function.". " XML is the ideal basis for a multimedia publishing
E N D
1 XML Concepts and Basics
What is XML? "XML is a vehicle not only for business-to-business transaction and content management, but for the encoding of transactional data passed from business function tobusiness function." "XMLis the ideal basis for a multimedia publishing concept, which is information on demand." "XML can describe the content structures of all kinds of documents and data in the most appropriate way for each application." "An EAI-enabling technology that simplifies application integration within an organization."
"We realized that XMLwould be the best way to store tax returns, tax schedules, and tax related messages."(California Board of Equalization, USA) What is XML ? "The features of XML make it possible to select certain contents out of a document and present them in various media."(Huethig Publishing Group, Germany) "With XML it is easy for clients to re-present the information in the way that bests suits their needs." (Sportsdata Pty Ltd, Australia) "In a few years' time, no company in the automotive sector will be able to manage without XML." (Lear Corporation, Fiat Division, Italy)
What is XML ? A standard developed by theWorld Wide Web Consortiumfor structured text The "ExtensibleMarkup Language" XML makes documents available for automatedprocessing. The basis is the separation of content,structure, and presentation. A Meta Markup Language
Compare HTML to XML Meta Markup Language SGML XML Markup Language HTML TECHNICAL BOOK Extensible only bythe W3C Define tags yourself Markup for the presentation in the browser of text, images, links, ... Markup with information on the content Example: technical book
HTML • Formatting language for Web browsers • Easy to understand and to use • Widely used • No semantics • Content cannot be recognized and processed by programs • Expensive maintenance of pages • No common standard • Difficult to extend (for market-related and technical reasons)
XML • Meta language • Markup languages (tags) can be defined • Like HTML, XML is integrated in the Internet technology • XML separates data and instructions for presentation. • XML is a self-describing data format. • XML is document- and data-oriented
E-Business Sales Automation Mobile Employees CRM Data Transaction Processing ERP Applications Portals Customers Knowledge Management Supply Chain Management Catalogs Documents Browser and Mobile Devices Business Partners Information Technology Today
XML and ... Content Management Document Management Publishing Web Services Data Exchange Application Integration
SGML • Standard Generalized Markup Language(Charles F. Goldfarb, Ed Mosher, Ray Lorie) • Metalanguage to define different document types • ISO standard 1986 (ISO 8879) • The idea • Document processing by computer • Separation of structure, content and presentation • System- und vendor-independent • Drawbacks • Complex; many options for special applications • Syntax not legible by humans • Complex and expensive tools
Documents Content Document vs. Content Management
Extract • Assemble • Format • Publish Content Management Content
Content Management System Content Management Systems Editorial Workflow Authoring Media-neutral Data Storage Cross Media Publishing Content Administration Website Management
Content Management System XML and Content Management EditorialWorkflow Authoring Media-neutralData Storage Cross Media Publishing Content Administration Website Management
<?xml version="1.0"?> <weather-report> <date>August 15, 2000</date> <time>08:00 </time> <area> <city>Darmstadt</city> <region>Hessen</region> <country>Germany</country> </area> <measurements> <skies>fine</skies> <temperature scale="C">25</temperature> <wind> <direction>SW</direction> <windspeed>6</windspeed> </wind> </measurements> </weather-report> Weather Data
Printer Graphics <?xml?> <weather-report> <date>August 15, 2000</date> <time>08:00 </time> <area> <city>Darmstadt</city> <region>Hessen</region> <country>Germany</country> </area> <measurements> <skies>fine</skies> <temperature scale=“C”>25</temperature> <wind> <direction>SW</direction> <windspeed>6</windspeed> </wind> </measurements> </weather-report> Reports Internet Publishing Using Style Sheets Weather Data Braille News Ticker Frankfurt: Wind 4 WNW / Rain / 22°C
XML and Publishing XForms XHTML WML SMIL SVG VoiceXML
<?xml version="1.0"?> <svg width="50" height="40"> <defs><clipPath id="clip1"> <rect x="0" y="0" width="50" height="40"/> </clipPath> </defs> <g style="stroke:none; clip-path:url(#clip1)"> <rect x="0" y="0" width="50" height="40" style="fill:#0000A0"/> <path style="stroke:#ffffff;stroke-width:8"d="M 0,0 L 50,40 M 0,40 L 50,0"/> <path style="stroke:#ff0000;stroke-width:5"d="M 0,0 L 50,40 M 0,40 L 50,0"/> <path style="stroke:#ffffff;stroke-width:8"d="M 25,0 V 40 M 0,20 H 50"/> <path style="stroke:#ff0000;stroke-width:5"d="M 25,0 V 40 M 0,20 H 50"/> </g></svg> Scalable Vector Graphics
Data Exchange Banks Suppliers Customers Payments / Credits Orders Order Processing and Service Enterprises ServiceProvider Public Authorities Transportation/Logistics Taxes / Regulations Delivery
XML and Data Exchange ebXML XML / EDI HL/7 NewsML FpML XBRL
OrderProcessing MaterialsManagement Call Center Accounting Design Manufacturing PersonnelAdministration Application Integration
OrderProcessing MaterialsManagement Call Center Accounting Design Manufacturing PersonnelAdministration XML and Application Integration
Logistics Provider Bank CORBA COM SOAP SOAP SOAP ShopApplication RPC Supplier Dealer Web Services Web ServiceShipping Order Web ServiceCredit Card Check Web ServiceOrder Acceptance
<SOAP-ENV:Envelope> <SOAP-ENV:Body> <getPrice> <isbn type="string">1861005067</isbn> </getPrice> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Request <?xml version='1.0'?> <SOAP-ENV:Envelope ...> <SOAP-ENV:Body> <getPriceResponse> <return type="float">25.95</return> </getPriceResponse > </SOAP-ENV:Body> </SOAP-ENV:Envelope> Response XML and Web Services Barnes & Noble Book Prices(http://services.xmethods.net:80/soap/servlet/rpcrouter)
Presentation <?xml version="1.0"?> <weather-report> <date>August 15, 2000</date> <time>08:00 </time> <area> <city>Darmstadt</city> <region>Hessen</region> <country>Germany</country> </area> <measurements> <skies>fine</skies> <temperature scale=“C”>25</temperature> <wind> <direction>SW</direction> <windspeed>6</windspeed> </wind> </measurements> </weather-report> Structure Description Working with XML Content
DTD /Schema Style Sheet <?xml?> <yacht yachtid='147'> <name>Mona Lisa</name><image file='yacht147.jpg'/> <description> Any text describing this yacht 147</description> <details> <type>GULFSTAR 55</type> ength>1700</length> <width>480</width> <draft>170</draft> <sailsurface>112</sailsurface> <motor>84</motor> <headroom>202</headroom> <bunks>8</bunks> </details> </yacht> Stylesheet Processor Parser 01 Person 05 Name 10 FName 10 SName Application Processing with XML Processing Presentation
Adding XML Editor Editing Processing Application Parser Storing Sending Application Parser Parser Processing Display Style Sheet Scenarios
Applications Humans Network Transfer Application Integration Data Exchange Web Services Publishing Content Management Processing Types Anwendungsgebiete Storage and Retrieval XML Summarized Homogeneous Technology HTML WML SVG pdf VoiceML ... Presentation
Summary • XML, the Extensible Markup Language, has attracted vast attention within a short time. XML is based on established standards. • Areas of application are primarily Document Management, Content Management, Publishing, Data Echange, Application Integration and Web Services. XML therefore concerns applications in all areas of commerce, technology, and science.