Class

REXML::XMLDecl

Inheritance
< REXML::Child < Object
Included Modules
Encoding

NEEDS DOCUMENTATION

Constants

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

Attributes

Name Visibility R/W Description
standalone public RW
version public RW
writeencoding public R
writethis public R

Aliases

Method Alias Description
encoding= → old_enc=
standalone → stand_alone?

Methods

Class

Visibility Signature
public default ()
public new (version=DEFAULT_VERSION, encoding=nil, standalone=nil)

Instance

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

Class Method Detail

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)

Instance Method Detail

==( other )

clone()

dowrite()

encoding=( enc )

inspect()

node_type()

nowrite()

write(writer, indent=-1, transitive=false, ie_hack=false)

indent:Ignored. There must be no whitespace before an XML declaration
transitive:Ignored
ie_hack:Ignored

xmldecl(version, encoding, standalone)