background preloader

Languages

Facebook Twitter

Tutorial: Handling XML data. Introduction This tutorial was originally posted on the old site on 20th December, 2007.

Tutorial: Handling XML data

XML, Extensible Markup Language, is a general-purpose markup language which can be used for storing arbitrary data in a structured way. It is often used for sharing data between applications and a common usage of XML is for instance RSS feeds. With the emerge of PHP 5, support for handling XML data has greatly improved and in this tutorial we will take a look at the features in PHP 5 which we can use to parse, alter and create XML documents. At the end of the tutorial we will also take a look at how you can create an RSS feed without writing a single line of XML and then we will make it into a reusable class which you can implement in your own applications. Basic knowledge of XML is a prerequisite for this tutorial.

Right, let's go to the next page and get started... XML and Databases. Copyright 1999-2005 by Ronald Bourret Last updated September, 2005 This article also available in: Table of Contents 1.0 Introduction.

XML and Databases

HTML and CSS help. Html5. CSS Sprites: What They Are, Why They’re Cool, and How To Use Them. By Chris Coyier On This article has been revised and re-written several times since its very first publication in 2007, to keep the information current.

CSS Sprites: What They Are, Why They’re Cool, and How To Use Them

The most recent revision was done by Flip Stewart in January 2015. #What are CSS Sprites? Spoiler alert: they aren't fairies that write your stylesheets for you. I wish. To summarize: the term "sprites" comes from a technique in computer graphics, most often used in video games. CSS Sprites is pretty much the exact same theory: get the image once, and shift it around and only display parts of it. #Why use CSS Sprites? It may seem counterintuitive to cram smaller images into a larger image. Let's look at some numbers on an actual example: That adds up to a total of 14.38KB to load the three images. While the total image size (sometimes) goes up with sprites, several images are loaded with a single HTTP request. Thus, sprites are important for the same reasons that minifying and concatinating CSS and JavaScript are important. $ sprity . #SVGs. A Really, Really, Really Good Introduction to XML [XML, XSLT & Web Services]

In this chapter, we’ll cover the basics of XML – essentially, most of the information you’ll need to know to get a handle on this exciting technology.

A Really, Really, Really Good Introduction to XML [XML, XSLT & Web Services]

After we’re done exploring some terminology and examples, we’ll jump right in and start working with XML documents. Then, we’ll spend some time starting the project we’ll develop through the course of this book: building an XML-powered content management system. This excerpt is taken from No Nonsense XML Web Development with PHP, SitePoint’s new release, by Thomas Myer, which was designed to help you start using XML to build intelligent ‘Future-Proof’ PHP applications today. The title contains over 350 pages of XML and PHP goodies. It walks you through the process of building a fully-functional XML-based content management system with PHP. To find out more about “No Nonsense XML Web Development with PHP”, visit the book’s information page, or review the contents of the entire publication. Chapter 1. Who here has heard of XML? Better Semantics with CSS Combinators & Selectors » HTML & CSS, Layout » Design Festival.

I’m going to begin with a provocative claim: I believe CSS is one of the most difficult-to-master computer languages we have.

Better Semantics with CSS Combinators & Selectors » HTML & CSS, Layout » Design Festival

It doesn’t have a complex syntax and you certainly don’t need a doctorate in IT to understand it. However, it’s one of the only popular languages that isn’t “logical”—and I mean that in the most literal sense. Unlike other familiar web development languages such as JavaScript, PHP or even SQL, problems aren’t worked out via common logic. Spoken algorithms like “if X then do Y, otherwise do Z” or “select all of Y then do X with them” don’t translate to a language like CSS. Simply put; it’s a styling language. The Cascade is a metaphorical term for the syntax behind CSS. At design school we were all taught about classes and IDs, using . and # respectively, to directly target elements.

The Adjacent Sibling Combinator. Scripting help. Learn to code. Software training online-tutorials for Adobe, Microsoft, Apple & more. 5 Web Files That Will Improve Your Website. The amount of code that developers encounter regularly is staggering.

5 Web Files That Will Improve Your Website

At any one time, a single site can make use of over five different web languages (i.e. MySQL, PHP, JavaScript, CSS, HTML). There are a number of lesser-known and underused ways to enhance your site with a few simple but powerful files. This article aims to highlight five of these unsung heroes that can assist your site. They’re pretty easy to use and understand, and thus, can be great additions to the websites you deploy or currently run. An Overview.