















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is lecture for E-Commerce course. It was delivered by Prof. Abhra Honnenahalli at Acharya Nagarjuna University. It inlcudes: XML, Introduction, Extensible, Markup, Language, Generalized, HTML, Database, Document, Tag, Structure, Data
Typology: Slides
1 / 55
This page cannot be seen from the preview
Don't miss anything!
















































Documents have tags giving extra information about sections of thedocument
E.g. XML Introduction …
Derived from SGML (Standard Generalized Markup Language), butsimpler to use than SGML
Extensible
, unlike HTML
Users can add new tags, and
separately
specify how the tag should
be handled for display
Goal was (is?) to replace HTML as the language for publishingdocuments on the Web
Much of the use of XML has been in data exchange applications, not as areplacement for HTML
E.g.
A-
Downtown
500
A-
Johnson
Similar in concept to email headers
Does not allow for nested structures, no standard “type” language
Tied too closely to low level document structure (lines, spaces, etc)
XML type specification languages to specify the syntax^
DTD (Document Type Descriptors)
XML Schema
Plus textual descriptions of the semantics
However, this may be constrained by DTDs
Improper nesting
… ….
Formally: every start tag must have a unique matching end tag, thatis in the context of the same parent element.
Example: elements representing customer-id, customer name, andaddress nested within an order element
With multiple orders, customer name and address are storedredundantly
normalization replaces nested structures in each order by foreign keyinto table storing customer name and address information
Nesting is supported in object-relational databases
External application does not have direct access to data referencedby a foreign key
Example:
This account is seldom used any more. A-102 Perryridge400
Useful for document markup, but discouraged for datarepresentation
In the context of documents, attributes are part of markup, whilesubelement contents are part of the basic document contents
In the context of data representation, the difference is unclear andmay be confusing
Same information can be represented in two ways
A-101 …
Suggestion: use attributes for identifiers of elements, and usesubelements for contents
Otherwise, a site cannot automatically interpret data received fromanother site
Document Type Definition (DTD)
Widely used
XML Schema
Newer, increasing use
What elements can occur
What attributes can/must an element have
What subelements can/must occur inside each element, and howmany times.
All values represented as strings in XML
Name
Type of attribute
ID (identifier) or IDREF (ID reference) or IDREFS (multiple IDREFs)
Whether
mandatory (#REQUIRED)
has a default value (value),
or neither (#IMPLIED)
ATTLIST customer
customer-id
accounts
XML data with ID and IDREF attributes