SHARE
Facebook X Pinterest WhatsApp

Simplify Your Apps with the XML Binding Language 2.0

Written By
thumbnail
Web Webster
Web Webster
Dec 30, 2009

“As web applications replace web pages on the Internet, there
are a number of approaches that are being taken to add new
functionality to these sites. One approach, the one perhaps most
heavily used by applications, is programmatically controlling
different parts of a web page via scripts and user events. In most
cases, this process creates some form of binding on elements after
the fact, which can often lead to fairly messy java-script code
both in terms of long blocks of scripts and inline event handlers
calling those java-script functions.

“However, there’s another approach that may have the potential
to both simplify your applications and contribute significantly to
reuse. The idea behind it is deceptively simple: in a web page’s
CSS page, you define what’s called a behavior, a script that binds
to a given behavior language document written in mixed XML and
java-script called the XML Binding Language (XBL). Once the page
loads, any element that’s associated with that particular rule will
gain the behavior, essentially acting as a new “element” with its
own presentation, its own responses to user input, and its own
underlying data.

“XBL has been floating around in various incarnations since the
early 2000s. Microsoft created a type of binding called behaviors
in the late 1990s, but the technology never really caught on with
other browsers. In early 2003, XBL was introduced in Firefox as one
way of building extensions using the XML User-interface Language
(XUL), though XBL wasn’t formally specified as a standard outside
of Firefox. XBL bindings have worked in Firefox web pages almost
from the inception of the browser, but again, other vendors didn’t
follow suit.”

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.