"DTD/xhtml1-strict.dtd">
Class REXML::AttlistDecl
In: rexml/attlistdecl.rb
Parent: Child

This class needs:

spew back out what we get in. This works, but it would be better if we formatted the output ourselves.

AttlistDecls provide just enough support to allow namespace declarations. If you need some sort of generalized support, or have an interesting idea about how to map the hideous, terrible design of DTD AttlistDecls onto an intuitive Ruby interface, let me know. I'm desperate for anything to make DTDs more palateable.

Methods
[]    each    include?    new    parse_stream    pull    write   
Attributes
:element  [R] 

What is this? Got me.

Included modules
XMLTokens Enumerable
Public Class methods
new(source)

Create an AttlistDecl, pulling the information from a Source. Notice that this isn't very convenient; to create an AttlistDecl, you basically have to format it yourself, and then have the initializer parse it. Sorry, but for the forseeable future, DTD support in REXML is pretty weak on convenience. Have I mentioned how much I hate DTDs?

parse_stream(source, listener)

Parses an AttlistDecl out of a Source, and notifies a given listerer of the event.

pull(source)

Purrl an AttlistDecl from a Source, returning ... what? FIX THESE DOCS

Public Instance methods
[](key)

Access the attlist attribute/value pairs.

 value = attlist_decl[ attribute_name ]
include?(key)

Whether an attlist declaration includes the given attribute definition

 if attlist_decl.include? "xmlns:foobar"
each(&block)

Itterate over the key/value pairs:

 attlist_decl.each { |attribute_name, attribute_value| ... }
write(out, indent=-1)

Write out exactly what we got in.