Class | REXML::XMLDecl
In: | temp/xmldecl.rb
Parent: | Child

NEEDS DOCUMENTATION

### Methods

== clone default dowrite encoding= inspect new node_type nowrite write xmldecl

### Included Modules

Encoding

### Constants

DEFAULT_VERSION | = | "1.0";
DEFAULT_ENCODING | = | "UTF-8";
DEFAULT_STANDALONE | = | "no";
START | = | '<\?xml';
STOP | = | '\?>';

### External Aliases

standalone | -> | stand_alone?
encoding= | -> | old_enc=

### Attributes

standalone | [RW] |
version | [RW] |
writeencoding | [R] |

### Public Class methods

default()

Only use this if you do not want the XML declaration to be written; this object is ignored by the XML writer. Otherwise, instantiate your own XMLDecl and add it to the document.

Note that XML 1.1 documents must include an XML declaration

new(version=DEFAULT_VERSION, encoding=nil, standalone=nil)

### Public Instance methods

==( other )
clone()
dowrite()
encoding=( enc )
inspect()
node_type()
nowrite()
write(writer, indent=-1, transitive=false, ie_hack=false)
xmldecl(version, encoding, standalone)

[Validate]