SlideServe
Menu
Préférences
© SlideServe · v2026

XML - eXtensible Markup Language

minda avatar
9 diapositives · 212 Views · Oct 13, 2014

XML - eXtensible Markup Language. Who Am I? Name: Jared Rypka-Hauer Owner: Continuum Media Group, LLC Adobe Community Expert – ColdFusion 9 years ColdFusion Experience. XML Bootcamp: What and How. What is XML? Why XML? ColdFusion and XML Summary Links. What is XML?.

XML - eXtensible Markup Language - slide 1
01 / 9XML - eXtensible Markup Language
1 / 17

Télécharger la présentation

XML - eXtensible Markup Language
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. XML - eXtensible Markup Language Who Am I? Name: Jared Rypka-Hauer Owner: Continuum Media Group, LLC Adobe Community Expert – ColdFusion 9 years ColdFusion Experience

  2. XML Bootcamp: What and How • What is XML? • Why XML? • ColdFusion and XML • Summary • Links

  3. What is XML? • eXtensible Markup Language • Universally readable by computers and humans (at least in theory!) • Focuses on the rules for describing content • No restrictions on content (except...) • Basic concepts • Elements • Attributes • Entities • <[!CDATA[...]]> sections

  4. What is XML? (continued) • Basic rules • All tags must be closed • ...except! Self-closing tags • No forbidden characters • Use “entities” or CDATA • < is &lt; • > is &gt; • & is &amp; • <[!CDATA[or you can use this & it works too!]]> • Other characters are in the references links at the end • Documents must have a root element that wraps everything else in the document • A valid xml document can be as little as: • <root><tag1>somecontent</tag1></root>

  5. Example Document <root> <user isadmin=”false” sendemail=”false”> <firstname>Joe</firstname> <lastname>Smith</lastname> <email>joesmith@example.com</email> <setting name=”sendemail” value=”false” /> </user> </root>

  6. Why XML? • Structured • Parsable • Can be converted into objects • In the CF world: structures and arrays • Universal • Java, CF, .NET, PHP, ActionScript • RSS, AJAX, Microsoft Office, SQL Server • ANYTHING that has a need for structured data • Simple for Beginnners • Extremely flexible and powerful for advanced users • Portable

  7. Why XML? (continued) • Searchable • XPath (demo tonight) • XQuery (no demo tonight) • Not supported by CF yet • A mix of very familiar concepts • Directories on disk • Database tables • HTML!! (yeah, I thought that looked familiar!) • Stylable • XLT and XSLT • Perhaps a brief demo tonight • Extensions • VERY POWERFUL and yet very simple

  8. ColdFusion and XML • Built-in Functions: • xmlParse(“xmlString”) • xmlSearch(“XPath”,xmlObject) • isXml(“xmlString”) • isXmlObj(variable) • Elements are Arrays • Attributes are Structs • Live Demo: code and examples

  9. Links • XML Functions in ColdFusion • http://www.techfeed.net/cfQuickDocs/?getDoc=XML • W3Schools • http://www.w3schools.com/xml/ • Entities: http://w3schools.com/html/html_entities.asp • My Blog • http://www.web-relevant.com/blogs/cfobjective/index.cfm?mode=entry&entry=3B6B32E0-BDB9-5320-E255C424B74AC2F8 • http://www.web-relevant.com/blogs/cfobjective/index.cfm?mode=entry&entry=4C9A9E20-BDB9-5320-E49EBA5324E02DB3 • Tools • http://xmlbuddy.com/ • http://www.eclipse.org/webtools/wst/main.html • http://www.oxygenxml.com/ (pricey!)