Your SlideShare is downloading. ×
Xml
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Xml

157

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
157
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. EXTENSIBLE MARKUP LANGUAGE
  • 2. BINARY FILES : .doc or .rtfTEXT FILES: plain textSTANDARD GENERALIZED MARKUPLANGUAGE(SGML) :HTML :
  • 3. stands for EXtensible Markup Languagewas designed to carry data, not to display datais designed to be self-descriptiveis a W3C Recommendatio , February 10, 1998
  • 4. XML is used in many aspects of web development.XML Separates Data from HTML.XML Simplifies Data Sharing .XML Simplifies Data Transport .XML Simplifies Platform Changes .XML Makes Your Data More Available .
  • 5. <?xml version="1.0" encoding="ISO-8859-1"?><note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Dont forget me this weekend!</body></note>The first line is the XML declaration .The next line describes the root element (note)The next 4 lines describe 4 child elements of the root(to, from, heading, and body)..
  • 6. <doc> <parent> computer <em> 4 </em> arab </parent></doc>
  • 7. <doc> <parent> computer <em> text arab
  • 8. An XML document contains XML Elements.An element can contain:Other elements .Text .Attributes .Mix of all of the above .
  • 9. <bookstore> and <book> have element contents<title>, <author>, <year>, and <price> have text contentXML elements must follow these naming rules:Names can contain letters, numbers, and othercharactersNames cannot start with a number or punctuationcharacterNames cannot start with the letters xml (or XML, orXml, etc)Names cannot contain spaces
  • 10. XML Attributesattributes provide additional information about elements, <person gender="female"> XML Syntax RulesAll XML Elements Must Have a Closing TagXML Tags are Case Sensitive .XML Elements Must be Properly Nested .Entity References : &lt <; &gt >; &amp &; &apos ‘ ; &quot ";With XML, the white-space in a document is not truncated,Comments in XML : <!-- This is a comment -->
  • 11. <person gender="female"> <firstname>Anna</firstname> <lastname>Smith</lastname></person><person> <gender>female</gender> <firstname>Anna</firstname> <lastname>Smith</lastname></person>
  • 12. XML DTD : The purpose of a DTD is to define what elements, attributes and entities is legal in an XML document.XML Schema : XML Schema is an XML based alternative to DTD. EX : <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Dont forget me this weekend!</body> </note>
  • 13. DTD <!DOCTYPE note [ <!ELEMENT note (to,from,heading,body)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)> <!ELEMENT heading (#PCDATA)> <!ELEMENT body (#PCDATA)> ]>SCHEMA <xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType></xs:element>
  • 14. XML is not a replacement for HTML.XML and HTML were designed with different goals:XML was designed to transport and storedata, with focus on what data isHTML was designed to display data, with focus onhow data looksHTML is about displaying information, while XMLis about carrying information
  • 15. XPATH : is a query language for selecting nodes froman XML documentXpointer , Xlink: : XLink defines a standard way of creating hyperlinks in XML documents ,XPointer allows the hyperlinks to point to morespecific parts (fragments) in the XML document.XSLT: language for transforming XML documents intoother XML documents,[1] or other objects suchas HTMLDOM (DOCUMENT OBJECT MODEL): defines astandard way for accessing and manipulatingdocuments.
  • 16. XHTML : RELATION BETWEEN XML ANDHTML .WSDL : for describing available web services .WML : as markup languages for handheld devices .RSS : languages for news feeds .SMIL : for describing multimedia for the web .
  • 17. HTTP://WWW.BOOSLA.COMHTTP://WWW.W3SCHOOLS.COMHTTP://WWW.C4ARAB.COMHTTP://KUTUB.INFO.COM

×