Subscribe
Tutorial search

XML Tutorials


We hope that you will enjoy our XML tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own XML tutorial to our site. Thank you !

Sort by:
The Magic of RSS in Affiliate Marketing
The Magic of RSS in Affiliate Marketing
Today, I am going to teach you all about RSS, and how you can use it to build backlinks and consistent traffic to your sites.
Difficulty:
Parsing XML Documents in PHP
Parsing XML Documents in PHP
All XML parsing is done by SimpleXML internally using the DOM parsing model. There are no special calls or tricks you need to perform to parse a document. The only restraint is that the XML document must be well-formed, or SimpleXML will emit warnings and fail to parse it. Also, while the W3C has published a recommended specification for XML1.1, SimpleXML supports only version 1.0 documents. Again, SimpleXMLwill emit a warning and fail to parse the document if it encounters an XML document with a version of 1.1. All objects created by SimpleXML are instances of the SimpleXMLElement class. Thus, when parsing a document or XML string, you will need to create a new SimpleXMLElement; there are several ways to do this. The first two ways involve the use of procedural code, or functions, that return SimpleXMLElement objects. One such function, simplexml_load_string(), loads an XML document from a string, while the other, simplexml_load_file(), loads an XML document from a path. The following example illustrates the use of each, pairing file_get_contents() with simplexml_load_string(); however, in a real-world scenario, it would make much more sense to simply use simple_xml_load_file(): // Load an XML string $xmlstr = file_get_contents(’library.xml’); $library = simplexml_load_string($xmlstr); // Load an XML file $library = simplexml_load_file(’library.xml’); Since it was designed to work in an object-oriented environment, SimpleXML also supports an OOP-centric approach to loading a document. In the following example, the first method loads an XML string into a SimpleXMLElement, while the second loads an external document, which can be a local file path or a valid URL. // Load an XML string $xmlstr = file_get_contents(’library.xml’); $library = new SimpleXMLElement($xmlstr); // Load an XML file $library = new SimpleXMLElement(’library.xml’, NULL, true); Note here that the second method also passes two additional arguments to SimpleXMLElement’s constructor. The second argument optionally allows the ability to specify additional libxml parameters that influence the way the library parses the XML. It is not necessary to set any of these parameters at this point, so we left it to NULL. The third parameter is important, though, because it informs the constructor that the first argument represents the path to a file, rather than a string that contains the XML data itself.
Difficulty:
XML Documentation in .Net
XML Documentation in .Net
.Net provides a way to document or comment your source code. That can in-turn be converted into professional documentation by using style-sheets, MS Documentation tools or some other third party.
Difficulty:
Add/remove elements to/from an XML Document using C#
Add/remove elements to/from an XML Document using C#
This article shows how to add and remove elements from an XML Document using C#.
Difficulty:
Linux and Unix Document publishing using XML
Linux and Unix Document publishing using XML
Robust, open standards for XML document markup and a rich set of freely available tools for XML document parsing and format conversion make it easy to install and configure a complete documentation development and formatting environment on any UNIX or Linux system. This article focuses on DocBook, which is the best-known and most widely used schema for documentation markup.
Difficulty:
3 huge pains in your XML and SOA to avoid
3 huge pains in your XML and SOA to avoid
This article examines three different common anti-patterns, or "worst practices" in XML that can give you a big headache when coding for Web services and SOA. These common errors are often encountered and can really make your life more complicated than it needs to be. These solutions can diffenently cut your misery short.
Difficulty:
Web Services Validation Tool for WSDL and SOAP
Web Services Validation Tool for WSDL and SOAP
With the Web Services Validation Tool for WSDL and SOAP, Web services developers are able to validate Web services messages without deploying actual Web services applications to application servers. This saves a lot of time and effort in deployment and maintenance of test servers. It can be deployed to validate Web services messages and filter invalid or malicious Web services messages. This provides Web services to operate in a more secure and efficient environment.
Difficulty:
An Introduction to XML Schema 1.1
An Introduction to XML Schema 1.1
This article gives an overview of co-occurrence constraint support in XML Schema 1.1, highlighting the addition of assertions and type alternatives to further restrict the existence and values of elements and attributes.
Difficulty:
An introduction to XML Schema 1.1
An introduction to XML Schema 1.1
The W3C XML Schema working group has developed XML Schema 1.1 to address the most commonly requested features including several which address shortcomings of XML Schema 1.0. In this first of a multi-part series of articles, XML Schema 1.1 is introduced with an overview of the features in this emerging standard.
Difficulty:
Context-Sensitive Spelling Checker
Context-Sensitive Spelling Checker
Context-Sensitive Spelling Checker (csSpell) is a spelling checker that examines words and their context to detect potential misspellings instead of using a spelling dictionary. csSpell can scan plain text files; files that contain non-text elements such as SGML, HTML, or XML tags; and even files that contain program code.
Difficulty:
Develop mobile widgets with Yahoo! Blueprint
Develop mobile widgets with Yahoo! Blueprint
Developing mobile applications can be a daunting task. Fortunately, Yahoo! Blueprint helps alleviate this pain by providing a single way to develop mobile applications. With Blueprint, you can author a mobile application one time that can be targeted at mobile devices with a browser, allowing you to reach many users. In this tutorial, learn how to develop a weather mobile widget using the Yahoo! Blueprint platform.
Difficulty:
An introduction to XML User Interface Language development
An introduction to XML User Interface Language development
XUL is a tried and true application framework. In fact, the recently released Firefox 3.0 is not only built using XUL, but provides a XUL runtime environment that enables any Firefox user to run other XUL applications. In this tutorial, you start to program in XUL and learn about some tools to help you develop XUL apps. Build a XUL-based blog editor as you enhance your Web development skills to build desktop apps with XUL.
Difficulty:
Implement tree view menu styles in U2 SystemBuilder/XA apps
Implement tree view menu styles in U2 SystemBuilder/XA apps
The U2 SystemBuilder Extensible Architecture for UniData and Universe (SB/XA) 6.0.0 introduces new application architecture for SystemBuilder applications. One of the features provided by the changes in the architecture is the ability to modify the presentation of your applications without modifying the underlying business logic. In this article, learn how to present a traditional SystemBuilder menu as a Tree View menu.
Difficulty:
XML for publishing
XML for publishing
When you move into an XML-based publishing environment, the right approach can save time and even make new publishing paradigms possible if you properly design the structure. This article describes how you can convert documents designed for print publishing to structured documents. Discover the logical musts to ensure that publishing is achievable following a transition to XML.
Difficulty:
High-performance XML parsing in Python with lxml
High-performance XML parsing in Python with lxml
lxml is a fast yet flexible library for XML processing in Python. It comes bundled with support for XML Path Language (XPath) and Extensible Stylesheet Language Transformation (XSLT), and it implements the familiar ElementTree API. In this article, you focus both on the ease of use provided by lxml and on its high-performance profile when processing very large XML data.
Difficulty:
Total Tutorials in Category: 145