Skip to main contentdfsdf

      • 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 tags are not predefined. You must define your own tags
      •  
      • XML is designed to be self-descriptive
      •  
      • XML is a W3C Recommendation
    • The Extensible Markup Language (XML) became a W3C Recommendation 10. February  1998.

    9 more annotations...

    • With XML, data can be stored in separate XML files. This way you can concentrate on using HTML for layout and display,
    • XML Simplifies Data Sharing

    11 more annotations...

    • <?xml version="1.0" encoding="ISO-8859-1"?>
    • XML Documents Form a Tree Structure

        

      XML documents must contain a root element. This element is "the  parent" of all other elements.

        The elements in an XML document form a document tree.   The tree starts at the root and branches to the lowest level of the tree.
    • All XML Elements Must Have a Closing Tag
    • XML Tags are Case Sensitive

    11 more annotations...

    • What is an XML Element?

        

      An XML element is everything from (including) the element's start tag to (including) the element's end tag.

        

      An element can contain other elements, simple text or a mixture of both. Elements can also have attributes.

    • XML documents can be extended to carry more information.

    12 more annotations...

    • XML elements can have attributes in the start tag, just like HTML.
    • Attributes often provide information that is not a part of the data

    8 more annotations...

    • XML with correct syntax is "Well Formed" XML.

        

      XML validated against a DTD is "Valid" XML.

    • Well Formed XML Documents

        

      A "Well Formed" XML document has correct XML syntax.

    5 more annotations...

    • An XML data island is XML data embedded into an HTML page.
    • <html> <body>
       
      <xml id="note" src="http://www.w3schools.com/note.xml"></xml>
    • XML Namespaces provide a method to avoid element name conflicts.

       
       

      Name Conflicts

       

      Since element names in XML are not predefined, a name conflict will occur when two different documents use the same element names.

    • Name Conflicts

       

      In XML, element names are defined by the developer. This often results in a  conflict when trying to mix XML documents from different XML applications.

    14 more annotations...

    • PCDATA - Parsed Character Data

       

      XML parsers normally parse all the text in an XML document.

    • CDATA - (Unparsed) Character Data

    6 more annotations...

    • Parsing XML
    • The parser reads XML into memory and converts it into an XML DOM object that  can be accessed with JavaScript.
    • The XML DOM

       

       The XML DOM (XML Document Object Model) defines a  standard way for accessing and manipulating XML documents. 

    • The DOM views XML documents as a tree-structure

    2 more annotations...

    • What is the DOM?

        

      The DOM is a W3C (World Wide Web Consortium) standard.

       

      The DOM defines a standard for accessing  documents like XML and HTML:

        

      "The W3C Document Object Model (DOM) is a platform and language-neutral  interface that allows programs and scripts to dynamically access and update the  content, structure, and style of a document."

      • What is the XML DOM?

         

        The XML DOM is:

          
           
        • A standard object model for XML
        •  
        • A standard programming interface for XML
        •  
        • Platform- and language-independent
        •  
        • A W3C standard

    1 more annotation...

1 - 13 of 13
20 items/page
List Comments (0)