1 / 7

Why XML (eXtensible Markup Language)

Why XML (eXtensible Markup Language). To allow the definition and use of many application-specific markup languages Slogan: XML does for data what Java does for programs: platform-independent and vendor-independent format www.w3.org/TR. Why markup languages?.

jace
Download Presentation

Why XML (eXtensible Markup Language)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Why XML (eXtensible Markup Language) • To allow the definition and use of many application-specific markup languages • Slogan: XML does for data what Java does for programs: platform-independent and vendor-independent format • www.w3.org/TR

  2. Why markup languages? • Contain plenty of concrete syntax. Easy to parse and human readable. • Address = “<address>” … “</address>”. • Graph = “<graph>” … “</graph>”.

  3. Connections • Languages • grammar for grammars • grammar for language • sentence of language • Markup Languages • XML: grammar for grammars of markup langs • grammar for specialized markup language • document

  4. Applications of XML • MathML • XMI? Define interchange format for UML objects • Textual description of objects • Textual description of multimedia: SMIL Synchronized Multimedia Integration Language

  5. Simplified example using proposed XML/Document Content Description(Microsoft/IBM) <DCD> <ElementDef Type=“Booking”> <Description> Airline res. </Description> <Group Order=“Seq”> <Element> LastName</Element> <Element> FirstInitial </Element> … <Element> SeatRow </Element> </Group> </ElementDef>

  6. Simplified example using proposed XML/Document Content Description(Microsoft/IBM) <ElementDef Type=“SeatRow” Model=“Data” DataType=“int” Min=“1” Max=“72” /> </DCD> ============== Example Booking object: <Booking> <LastName> Finkelstein </LastName> <FirstInitial> L </FirstInitial> <SeatRow> 33 </SeatRow> … </Booking>

  7. Very Simplified XML CanonicalXML = List(Pi) Element List(Pi). Element = Stag Inner Etag. Inner : DataChar | Pi | Element. Stag = “<“ Name Atts “>”. Etag = “</” Name “>”. Pi = “<?” ... “?>”. Atts = List(Att). Att = Name = “””” … “”””. List(S) ~ {S}.

More Related