Beruflich Dokumente
Kultur Dokumente
Standards in Information
Management: XML
Arijit Sengupta
Learning Objectives
ISOM
Agenda
ISOM
Overview
Syntax and Structure
The XML Alphabet Soup
XML as a meta-language
Overview
What is XML?
ISOM
Overview
What is XML?
ISOM
XML
Application X
Documents
XML
Repository
XML
Database
Configuration
Overview
Documents vs. Data
ISOM
Data
Hierarchical data structures
Overview
XML and Structured Data
ISOM
Overview
Benefits of XML
ISOM
Strict rules
Syntax
Structure
Case sensitive
Overview
Who Uses XML?
ISOM
Submissions by
Microsoft
IBM
Hewlett-Packard
Fujitsu Laboratories
Sun Microsystems
Netscape (AOL), and others
Agenda
ISOM
Overview
Syntax and Structure
The XML Alphabet Soup
XML as a meta-language
Elements
Each element has a beginning and ending tag
<TAG_NAME>...</TAG_NAME>
Attributes
Describes an element; e.g. data type, data range, etc.
Can only appear on beginning tag
Processing instructions
Encoding specification (Unicode by default)
Namespace declaration
Schema declaration
Yes
<xml? Version=1.0 ?>
<PARENT>
<CHILD1>This is element 1</CHILD1>
<CHILD2/>
<CHILD3></CHILD3>
</PARENT>
Namespace declaration
Prefix
URI (URL)
<BOOK xmlns:bk=http://www.bookstuff.org/bookinfo>
<bk:TITLE>All About XML</bk:TITLE>
<bk:AUTHOR>Joe Developer</bk:AUTHOR>
<bk:PRICE currency=US Dollar>19.99</bk:PRICE>
<bk:BOOK xmlns:bk=http://www.bookstuff.org/bookinfo
xmlns:money=urn:finance:money>
<bk:TITLE>All About XML</bk:TITLE>
<bk:AUTHOR>Joe Developer</bk:AUTHOR>
<bk:PRICE money:currency=US Dollar>
19.99</bk:PRICE>
<BOOK
<TITLE>All About XML</TITLE>
<AUTHOR>Joe Developer</AUTHOR>
<PUBLISHER xmlns=urn:publishers:publinfo>
<NAME>Microsoft Press</NAME>
</PUBLISHER>
</BOOK>
Entity
Substitution
<
<
&
&
Agenda
ISOM
Overview
Syntax and Structure
The XML Alphabet Soup
XML as a meta-language
Extensible Markup
Language
Infoset
Information Set
DTD
Document Type
Definition
Non-XML schema
XSD
XML Schema
XDR
CSS
XSL
Extensible Stylesheet
Language
XSLT
XSL Transformations
XSL-FO
XPointer
XML Pointer
Language
XLink
XML Linking
Language
XQuery
DOM
Document Object
Model
SAX
XML document:
<BOOK>
<TITLE>All About XML</TITLE>
<AUTHOR>Joe Developer</AUTHOR>
</BOOK>
DTD schema:
<!DOCTYPE
<!ELEMENT
<!ELEMENT
<!ELEMENT
]>
BOOK
BOOK
TITLE
AUTHOR
[
(TITLE+, AUTHOR) >
(#PCDATA) >
(#PCDATA) >
XML document:
<CATALOG>
<BOOK>
<TITLE>All About XML</TITLE>
<AUTHOR>Joe Developer</AUTHOR>
</BOOK>
</CATALOG>
Extensible
Inheritance support
Namespace support
Ability to map to relational database tables
XSD support in Visual Studio.NET
Consists of:
XSLT
XPath
XSL Formatting Objects (XSL-FO)
XSLT
//
..
Wildcard
[ ]
./author
//author
/bookstore[@specialty = textbooks]
(find all bookstores where the specialty
attribute = textbooks)
/book[@style = /bookstore/@specialty]
(find all books where the style attribute = the
specialty attribute of the bookstore element
at the root)
Result
/bookstore/book[1]
/bookstore/book[last()]
/bookstore/book[last()-1]
Selects the last but one book element that is the child of
the bookstore element
/bookstore/book[position()<3]
Selects the first two book elements that are children of the
bookstore element
//title[@lang]
//title[@lang='eng']
/bookstore/book[price>35.00]
/bookstore/book[price>35.00]/title
XPath Functions
ISOM
Accessor functions:
node-name, data, base-uri, document-uri
String functions:
compare, concat, substring, string-length,
uppercase, lowercase, starts-with, endswith, matches, replace,
Agenda
ISOM
Overview
Syntax and Structure
The XML Alphabet Soup
XML as a meta-language
XML as a Meta-Language
ISOM
SAX
DOM
A Language to
create Languages
CSS
DSSL
XSL
XML/DTD
XLL
XSLT
GO
XSchema
CML
XPath
MathML
XPointer
XQL
WML
BeanML
GO DTD:
ftp://ftp.geneontology.org/pub/go/xml/dtd/go.dtd
Math ML
ISOM
MathML DTD
www.w3.org/Math/DTD
MathML Browser
www.w3.org/Amaya
MathML Resources
www.webeq.com/mathml see sample documents here
Chemical ML
ISOM
CML DTD
www.xml-cml.org/dtdschema/index.html
CML Resources
www.xml-cml.org/chimeral/index.html
see sample documents here
some require plug-in downloads, can be slow
Wireless ML
ISOM
WML DTD
www.wapforum.org/DTD/wml_1.1.xml
WAP/WML Resources
www.oasis-open.org/cover/wap-wml.html
www.w3scripts.com/wap Tutorial on WML, also see WAP Demo
SVG Plug-Ins
www.adobe.com/svg
SVG Resources
www.irt.org/articles/js176 1999 article and good, brief tutorial
planet.svg An Example from Deitel
Bean ML
ISOM
Bean ML Resources
www.oasis-open.org/cover/beanML.html
With Bean ML
You can mark-up beans using Bean ML
And invoke different operations on Beans
Includes BML Scripting Framework
XBRL
ISOM
Extensible Business Reporting Language
Capturing and representing financial and accounting information
Variety of situations
e.g. publishing reports, extracting data for analysis, regulatory forms
etc.
News ML
ISOM
Designed to be media-independent
Initiated by International Press
Telecommunications Council
Enables tracking of news stories over time
NewsML website
www.newsml.org
NewsML DTD
http://www.oasis-open.org/cover/newsML.html
cXML
ISOM
xCBL
ISOM
ebXML
ISOM
UN/CEFACT: the United Nations body whose mandate covers
worldwide policy and technical development in the area of trade
facilitation and electronic business.
www.uncefact.org
ebXML website
www.ebxml.org
Current Endorsements
http://www.ebxml.org/endorsements.htm
Still needs buy-in from the larger IS/IT vendors
Conclusion
ISOM
Overview
Syntax and Structure
The XML Alphabet Soup
XML as a meta-language
Resources
ISOM
http://www.xml.com/
http://www.w3.org/xml/
http://www.w3schools.com/
http://msdn.microsoft.com/xml/