Category XML

XML and XSLT

With XSLT you can transform an XML document into HTML. Displaying XML with XSLT XSLT (eXtensible Stylesheet Language Transformations) is the recommended style sheet language for XML. XSLT is far more sophisticated than CSS. With XSLT you can add/remove elements…

XML and XPath

What is XPath? XPath is a major element in the XSLT standard. XPath can be used to navigate through elements and attributes in an XML document. XPath is a syntax for defining parts of an XML document XPath uses path…

XML DOM

What is the DOM? The Document Object Model (DOM) defines a standard for accessing and manipulating documents: “The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the…

XML Parser

All major browsers have a built-in XML parser to access and manipulate XML. XML Parser The XML DOM (Document Object Model) defines the properties and methods for accessing and editing XML. However, before an XML document can be accessed, it…

XML HttpRequest

All modern browsers have a built-in XMLHttpRequest object to request data from a server. The XMLHttpRequest Object The XMLHttpRequest object can be used to request data from a web server. The XMLHttpRequest object is a developers dream, because you can:…

Displaying XML

Raw XML files can be viewed in all major browsers. Don’t expect XML files to be displayed as HTML pages. Viewing XML Files <?xml version=”1.0″ encoding=”UTF-8″?> – <note>   <to>Tove</to>   <from>Jani</from>   <heading>Reminder</heading>   <body>Don’t forget me this weekend!</body> </note>…

XML Namespaces

XML Namespaces provide a method to avoid element name conflicts. 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. This XML carries…

XML Attributes

XML elements can have attributes, just like HTML. Attributes are designed to contain data related to a specific element. XML Attributes Must be Quoted Attribute values must always be quoted. Either single or double quotes can be used. For a…

XML Elements

An XML document contains XML Elements. What is an XML Element? An XML element is everything from (including) the element’s start tag to (including) the element’s end tag. <price>29.99</price> An element can contain: text attributes other elements or a mix…