deprecated/buildtools/buildsystemtools/lib/XML/DOM/Document.pod
author lorewang
Thu, 11 Nov 2010 11:26:32 +0800
changeset 677 44e49837144a
parent 655 3f65fd25dfd4
permissions -rw-r--r--
update release info
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
655
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     1
=head1 NAME
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     2
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     3
XML::DOM::Document - An XML document node in XML::DOM
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     5
=head1 DESCRIPTION
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     6
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     7
XML::DOM::Document extends L<XML::DOM::Node>.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     8
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     9
It is the main root of the XML document structure as returned by 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    10
XML::DOM::Parser::parse and XML::DOM::Parser::parsefile.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    11
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    12
Since elements, text nodes, comments, processing instructions, etc.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    13
cannot exist outside the context of a Document, the Document interface
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    14
also contains the factory methods needed to create these objects. The
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    15
Node objects created have a getOwnerDocument method which associates
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    16
them with the Document within whose context they were created.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    17
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    18
=head2 METHODS
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    19
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    20
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    21
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    22
=item getDocumentElement
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    23
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    24
This is a convenience method that allows direct access to
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    25
the child node that is the root Element of the document.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    26
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    27
=item getDoctype
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    28
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    29
The Document Type Declaration (see DocumentType) associated
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    30
with this document. For HTML documents as well as XML
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    31
documents without a document type declaration this returns
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    32
undef. The DOM Level 1 does not support editing the Document
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    33
Type Declaration.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    34
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    35
B<Not In DOM Spec>: This implementation allows editing the doctype. 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    36
See I<XML::DOM::ignoreReadOnly> for details.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    37
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    38
=item getImplementation
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    39
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    40
The DOMImplementation object that handles this document. A
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    41
DOM application may use objects from multiple implementations.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    42
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    43
=item createElement (tagName)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    44
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    45
Creates an element of the type specified. Note that the
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    46
instance returned implements the Element interface, so
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    47
attributes can be specified directly on the returned object.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    48
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    49
DOMExceptions:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    50
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    51
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    52
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    53
=item * INVALID_CHARACTER_ERR
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    54
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    55
Raised if the tagName does not conform to the XML spec.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    56
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    57
=back
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    58
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    59
=item createTextNode (data)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    60
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    61
Creates a Text node given the specified string.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    62
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    63
=item createComment (data)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    64
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    65
Creates a Comment node given the specified string.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    66
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    67
=item createCDATASection (data)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    68
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    69
Creates a CDATASection node given the specified string.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    70
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    71
=item createAttribute (name [, value [, specified ]])
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    72
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    73
Creates an Attr of the given name. Note that the Attr
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    74
instance can then be set on an Element using the setAttribute method.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    75
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    76
B<Not In DOM Spec>: The DOM Spec does not allow passing the value or the 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    77
specified property in this method. In this implementation they are optional.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    78
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    79
Parameters:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    80
 I<value>     The attribute's value. See Attr::setValue for details.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    81
              If the value is not supplied, the specified property is set to 0.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    82
 I<specified> Whether the attribute value was specified or whether the default
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    83
              value was used. If not supplied, it's assumed to be 1.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    84
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    85
DOMExceptions:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    86
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    87
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    88
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    89
=item * INVALID_CHARACTER_ERR
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    90
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    91
Raised if the name does not conform to the XML spec.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    92
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    93
=back
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    94
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    95
=item createProcessingInstruction (target, data)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    96
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    97
Creates a ProcessingInstruction node given the specified name and data strings.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    98
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    99
Parameters:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   100
 I<target>  The target part of the processing instruction.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   101
 I<data>    The data for the node.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   102
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   103
DOMExceptions:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   104
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   105
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   106
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   107
=item * INVALID_CHARACTER_ERR
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   108
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   109
Raised if the target does not conform to the XML spec.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   110
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   111
=back
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   112
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   113
=item createDocumentFragment
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   114
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   115
Creates an empty DocumentFragment object.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   116
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   117
=item createEntityReference (name)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   118
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   119
Creates an EntityReference object.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   120
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   121
=back
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   122
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   123
=head2 Additional methods not in the DOM Spec
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   124
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   125
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   126
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   127
=item getXMLDecl and setXMLDecl (xmlDecl)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   128
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   129
Returns the XMLDecl for this Document or undef if none was specified.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   130
Note that XMLDecl is not part of the list of child nodes.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   131
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   132
=item setDoctype (doctype)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   133
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   134
Sets or replaces the DocumentType. 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   135
B<NOTE>: Don't use appendChild or insertBefore to set the DocumentType.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   136
Even though doctype will be part of the list of child nodes, it is handled
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   137
specially.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   138
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   139
=item getDefaultAttrValue (elem, attr)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   140
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   141
Returns the default attribute value as a string or undef, if none is available.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   142
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   143
Parameters:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   144
 I<elem>    The element tagName.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   145
 I<attr>    The attribute name.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   146
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   147
=item getEntity (name)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   148
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   149
Returns the Entity with the specified name.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   150
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   151
=item createXMLDecl (version, encoding, standalone)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   152
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   153
Creates an XMLDecl object. All parameters may be undefined.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   154
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   155
=item createDocumentType (name, sysId, pubId)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   156
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   157
Creates a DocumentType object. SysId and pubId may be undefined.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   158
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   159
=item createNotation (name, base, sysId, pubId)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   160
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   161
Creates a new Notation object. Consider using 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   162
XML::DOM::DocumentType::addNotation!
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   163
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   164
=item createEntity (parameter, notationName, value, sysId, pubId, ndata)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   165
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   166
Creates an Entity object. Consider using XML::DOM::DocumentType::addEntity!
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   167
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   168
=item createElementDecl (name, model)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   169
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   170
Creates an ElementDecl object.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   171
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   172
DOMExceptions:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   173
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   174
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   175
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   176
=item * INVALID_CHARACTER_ERR
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   177
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   178
Raised if the element name (tagName) does not conform to the XML spec.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   179
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   180
=back
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   181
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   182
=item createAttlistDecl (name)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   183
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   184
Creates an AttlistDecl object.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   185
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   186
DOMExceptions:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   187
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   188
=over 4
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   189
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   190
=item * INVALID_CHARACTER_ERR
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   191
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   192
Raised if the element name (tagName) does not conform to the XML spec.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   193
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   194
=back
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   195
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   196
=item expandEntity (entity [, parameter])
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   197
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   198
Expands the specified entity or parameter entity (if parameter=1) and returns
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   199
its value as a string, or undef if the entity does not exist.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   200
(The entity name should not contain the '%', '&' or ';' delimiters.)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   201
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   202
=item check ( [$checker] )
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   203
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   204
Uses the specified L<XML::Checker> to validate the document.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   205
If no XML::Checker is supplied, a new XML::Checker is created.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   206
See L<XML::Checker> for details.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   207
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   208
=item check_sax ( [$checker] )
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   209
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   210
Similar to check() except it uses the SAX interface to XML::Checker instead of 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   211
the expat interface. This method may disappear or replace check() at some time.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   212
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   213
=item createChecker ()
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   214
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   215
Creates an XML::Checker based on the document's DTD.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   216
The $checker can be reused to check any elements within the document.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   217
Create a new L<XML::Checker> whenever the DOCTYPE section of the document 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   218
is altered!
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   219
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   220
=back