Consuming eXtensible Markup Language (XML) feeds.

Slides:



Advertisements
Similar presentations
Ali Alshowaish w3schools. XML documents use a self-describing and simple syntax: The first line is the XML declaration. It defines the XML version (1.0)
Advertisements

What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display data XML.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
XML Introduction By Hongming Yu Feb 6 th, Index Markup Language: SGML, HTML, XML An XML example Why is XML important XML introduction XML applications.
Introduction XML Dr. Qusai Abuein June, 2012 XML Dr. Qusai Abuein 1 Part (I) XML Basics.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
 Introduction to XML Introduction to XML  Features of XML Features of XML  Syntax of XML Syntax of XML  Syntax rules of XML document Syntax rules.
1 XML Data Management 4. Domain Object Model Werner Nutt.
What is XML? XML stands for EXtensible Markup Language
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
These Questions are copied from
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
How do I use HTML and XML to present information?.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
CIS 275—Web App Dev I XML. 2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________.
Consuming eXtensible Markup Language (XML) feeds.
1 Dr Alexiei Dingli XML Technologies XML. 2 XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry.
WEB APPLICATION DEVELOPMENT For More visit:
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
XML EXtensible Markup Language. Agenda Introduction to XML XML Rules XML Elements XML Attributes XML Validation XML Exercises XML Namespaces XML CDATA.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
An Introduction to XML Sandeep Bhattaram
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
C# and Windows Programming XML Processing. 2 Contents Markup XML DTDs XML Parsers DOM.
IS446: Internet Software Development Dr. Azeddine Chikh.
Jennifer Widom XML Data Introduction, Well-formed XML.
XML Presented by Kushan Athukorala. 2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT.
Submitted To: Ms. Poonam Saini, Asst. Prof., NITTTR Submitted By: Rohit Handa ME (Modular) CSE 2011 Batch.
 defined as Extensible Markup Language (XML) is a set of rules for encoding documents  Defines structure and data.
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
DTD ]>. Internal DTD Declaration ]> Faculty Director Reminder Please be regular in your classes.
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
IS444: Modern software development tools Dr. Azeddine Chikh.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
AJAX. Ajax  $.get  $.post  $.getJSON  $.ajax  json and xml  Looping over data results, success and error callbacks.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Introduction to XML Extensible Markup Language.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
XML. What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display data.
First Prototype Presentation, Sprint Review and the Game Dev Production Process CS 153P Session 8.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML intro. What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Unit 4 Representing Web Data: XML
XML Data Introduction, Well-formed XML.
Javascript & jQuery XML.
Presentation transcript:

Consuming eXtensible Markup Language (XML) feeds

What is XML? XML Stands for eXtensible Markup Language Is designed to transport and store data with focus on what data is As opposed to HTML that was designed to display data with focus on how data looks Tags are not predefined The tags used in HTML are predefined HTML docs use tags defined in HTML standard Does not do anything Created to structure, store, and transport information is a Software and hardware-independent tool For carrying information Tove Jani Reminder Don't forget me this weekend!

How can XML be used? Separate data from HTML Displaying dynamic data in your HTML document Simplify data sharing/transport XML is stored in plain text format => Software and hardware-independent data sharing Greatly reducing complexity of data transport  Between incompatible applications

XML tree XML documents Form a tree structure Starting at root and branching to leaves Example XML document: Tove Jani Reminder Don't forget me this weekend!

Tree representation of an XML doc: Example Everyday Italian Giada De Laurentiis Harry Potter J K. Rowling Learning XML Erik T. Ray

XML elements An element can contain Other elements Text Attributes Or a mix of the above Harry Potter J K. Rowling Learning XML Erik T. Ray

Well-formed XML docs The syntax rules XML docs must have a root element XML elements must have a closing tag XML tags are case sensitive XML elements must be properly nested XML attributes must be quoted This text is bold and italic This is incorrect Tove Jani

Document Object Model (DOM) DOM Is a tree structure where each node Contains one of the components of an XML structure The two most common nodes are  Element nodes and text nodes Provides an API for processing XML files Instantiate the Factory Create a document builder Get a parser and parse the file

DOM Nodes NodenodeNamenodeValueAttributes AttrName of attributeValue of attributenull CDATASection#cdata-sectionContent of the CDATA section null Comment#commentContent of the comment null Document#documentnull DocumentFragment#documentFragmentnull DocumentTypeDocument Type namenull ElementTag namenull EntityEntity namenull EntityReferenceName of entity referenced null NotationNotation namenull ProcessingInstructionTargetEntire content excluding the target null Text#textContent of the text node null

Classes for Processing XML files Document Represents the entire XML document Providing primary access to the document’s data Methods getElementsByTagName(String tagname)  Returns a NodeList of all Nodes with a given tag name Node Represents a single node in the document tree getNodeName()/getNodeValue() return  The name/value as a string of the node depending on its type getFirstChild()/getLastChild()/getChildNodes()

Classes for Processing XML files (continued) NodeList Ordered collection of nodes, where Items accessible via an integral index Methods item(int index)  Returns the Node at index. NamedNodeMap Collection of nodes that can be accessed by name Methods Node item(int index) Node getNamedItem(String name)

Classes for Processing XML files (cont’d) Element Represents an element in XML that May have attributes associated with them Has methods to retrieve attributes by name or by value String getAttribute(String name)  Retrieves an attribute name by name Attr getAttributeNode(String name)  Retrieves an attribute node by name Attr Represents an attribute in an Element object String getName() String getValue()