Module XMLHelper
In: lib/facets/more/xmlhelper.rb

XMLHelper

XMLHelper is a utility module which provides methods the ease the creation of XML markup.

Usage

  x = XMLHelper
  puts x.element( :a, x.element( :b, "X" ) )

produces

  <a><b>X</b></a>

Methods

attlist!   cdata   comment   doctype!   document   element   element!   entity!   instruct   instruction   new   notation!   pi   text   xml  

Public Instance methods

ATTLIST DTD declaration.

DOCTYPE DTD declaration.

ELEMENT DTD declaration.

ENTITY DTD declaration.

instruction( tag, *args )

Alias for instruct

new( options )

Alias for document

NOTATION DTD declaration.

pi( tag, *args )

Alias for instruct

[Validate]