Archive for the 'XML' Category

Why is XML Better?

July 24th, 2009 | Category: Programming, XML, XPath, XSLT

Why is XML better than custom internal formats? Isn’t a non-standard set of XML tags basically equivalent to a custom format when using data internally to an application? Absolutely not, and here is why.
Read more

Comments are off for this post

DVSL: An Alternative to XSLT

June 26th, 2009 | Category: Java, XML, XPath, XSLT

DVSL is a fairly small, little known, product associated with the Velocity project over at Apache which takes the best part of XSLT: XPATH, and replaces the verbose and frustrating scripting of XSLT with a java-based template language instead.
Read more

Comments are off for this post

XPath From the Command Line Using Ruby

September 13th, 2008 | Category: Programming, Ruby, XML, XPath

There are other ways of doing this, but I thought it would be fun to write a command-line xpath script in ruby using rexml. (full working example here)
Read more

Comments are off for this post

Verifying Code Examples in your Documentation

September 06th, 2008 | Category: Programming, XML, XSLT, docbook

One of the more annoying aspects of writing developer documentation is that it is very easy for your code examples to get out of date, develop typos, etc(As those reading previous articles may have noticed). In this article I use docbook, xslt, and automake to generate code examples that are guaranteed to compile.
Read more

Comments are off for this post

Creating a Binary File Using a Ruby DSL

March 25th, 2008 | Category: Networking, Programming, Ruby, XML

So I used ruby to convert a simple hex string into a binary file in Converting hex to Binary in 4 Languages. Today I was trying to create a mixed ascii/binary file at work and created a little Domain Specific Language that has good possibilities.

NOTE: There is an expanded version of this script here: A Better Binary File Generator DSL in Ruby
Read more

Comments are off for this post

Netcat Clone in Three Languages – Part I (Ruby)

February 20th, 2008 | Category: Networking, Perl, Programming, Ruby, XML

I thought I’d continue my series of writing the same application in multiple languages by trying to clone the wonderful network tool: netcat. For the first installation I’m going to try it in Ruby.

Read more

3 comments