XML
  Home arrow XML arrow An Introduction to RELAX NG
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

An Introduction to RELAX NG
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-07-28

    Table of Contents:
  • An Introduction to RELAX NG
  • Getting started with elements
  • Adding child elements
  • Adding attributes

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    An Introduction to RELAX NG


    (Page 1 of 4 )

    RELAX NG is not a capitalized misspelling of something you probably get to do all too rarely as a busy programmer and web designer. If you use XML to any great degree, you'll want to take a close look at it. It can help make your life as a web developer easier, allowing you to relax a little more. Keep reading to learn what it is, and the advantages to using it. This is the first part of a three-part series.

    RELAX NG is one of several schema languages available for XML. Based on RELAX (REgular LAnguage description for XML) and TREX (Tree Regular Expressions for XML), RELAX NG offers a nice alternative to W3C-recommended XML Schema. RELAX NG aims to be a simple and easy-to-use language, and, perhaps as a result of this, it has become quite popular. In this article, we'll take a look at RELAX NG and some of the features it provides.

    One of the most interesting things about RELAX NG is that it actually has two syntaxes. Either syntax can be used to create a schema definition, and the same results can be achieved.

    The first syntax is an XML-based syntax, which, of course, makes sense because RELAX NG is, after all, a schema language for XML. However, describing something with XML doesn't always produce a concise result. XML's structure often lends itself to verbose results.

    The second syntax is very different. It's called the “compact syntax.” It's not based on XML, and it can create some pretty concise results while still being very readable.

    Rather than expand on the merits of both syntaxes and steer you one way or the other, I'll leave you to decide which syntax to use for your projects. This article will cover both syntaxes.

    More XML Articles
    More By Peyton McCullough


       · Hello, all,This is the first of three articles introducing the RELAX NG schema...
     

    XML ARTICLES

    - Using Regions with XSL Formatting Objects
    - Using XSL Formatting Objects
    - More Schematron Features
    - Schematron Patterns and Validation
    - Using Schematron
    - Datatypes and More in RELAX NG
    - Providing Options in RELAX NG
    - An Introduction to RELAX NG
    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT