{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

WTA2_Intro_to_XML - eXtensible Markup Language(XML(XML Text...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
eXtensible Markup Language (XML) Text Books Programming the World Wide Web, 4th Edition, Robert W. Sebesta Programming the web using XML, Ellen Pearlman, Eileen 1 Subject Incharge Pratidnya S. Hegde Patil Mullin, TMGH XML & Related Technologies, Atul Kahate
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Meaning box4 A markup language for creating documents containing structured information. square6 Markup Language : Mechanism to identify structures in a document. square6 Structured Information : box4 Contains content (text, image, etc.) 2 box4 Contains indication of what role the content plays (eg. heading, footnote, address, etc.) box4 Can define your own tags.
Image of page 2
Advantage of XML box4 Application Programs use the meanings of the tags to find specific kinds of data and process it accordingly. box4 Rules of XML and rules of specific XML- based markup language allow documents to be validated before any application 3 attempts to process their data.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
XHTML vs. XML box4 XHTML describes the overall layout and some presentation hints for general information. box4 XML-based markup languages describe data and its meaning through their individualized tags and attributes. XML 4 does not specify any presentation details.
Image of page 4
XHTML vs. HTML Both are markup languages, but have some differences: box4 In HTML, both the tag set and tag semantics are predefined and fixed. box4 XML specifies neither a tag-set nor semantics. Provides facility to define tags. 5 square6 square6 Semantics defined by applications that process the documents (or by stylesheets). square6 XML is thus a meta language for describing markup languages.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
XHTML vs HTML 6
Image of page 6
XML box4 Used to define the structure and meaning of a document and to modify the look and formatting of text. In addition to formatting text, markup can also be used to determine the structure and meaning of textual elements. box4 Example : square6 Markup can establish that a document can contain only the elements Name, Birthday, and Age. square6 It can also insist that the document cannot contain Birthday and Age elements unless it contains a Name element. 7 square6 Markup can then state that the Name element must be text, the Birthday element must be a date, and the Age element must be a number. square6 In this way, the markup sets up the structure of the document and defines the semantic meaning of the elements.
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Example box4 Defining a document with markup elements to represent a fast-food restaurant’s combination meal, containing burger, drink and fries. box4 Required : square6 To be sent to suppliers for restocking. square6 Customers might sent orders through email. 8 box4 Thus a convenient way to store restaurant data.
Image of page 8
Example : Fast-food restaurant box4 Every combomeal has a name and contains burger, fries & drink. box4 Bun can be white or wheat.
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern