XML-DOM
view release on metacpan or search on metacpan
lib/XML/DOM/PerlSAX.pm
lib/XML/DOM/ProcessingInstruction.pod
lib/XML/DOM/Text.pod
lib/XML/DOM/XMLDecl.pod
lib/XML/Handler/BuildDOM.pm
samples/REC-xml-19980210.xml Sample XML files
samples/minutes.xml
t/build_dom.t
t/dom_astress.t dom_*.t are test cases for XML::DOM
t/dom_attr.t
t/dom_cdata.t
t/dom_documenttype.t
t/dom_encode.t
t/dom_example.t
t/dom_extent.dtd
t/dom_extent.ent
t/dom_extent.t
t/dom_jp_astress.t
t/dom_jp_attr.t
t/dom_jp_cdata.t
t/dom_jp_example.t
t/dom_jp_minus.t
t/dom_jp_modify.t
t/dom_jp_print.t
t/dom_minus.t
t/dom_modify.t
t/dom_noexpand.t
t/dom_print.t
t/dom_template.t
t/dom_text.t
lib/XML/DOM.pm view on Meta::CPAN
{
import XML::DOM::CharacterData qw( :DEFAULT :Fields );
import XML::DOM::Node qw( :DEFAULT :Fields );
XML::DOM::def_fields ("", "XML::DOM::CharacterData");
}
use XML::DOM::DOMException;
sub getNodeName
{
"#cdata-section";
}
sub getNodeType
{
CDATA_SECTION_NODE;
}
sub cloneNode
{
my $self = shift;
lib/XML/DOM.pm view on Meta::CPAN
sub to_expat
{
my ($self, $iter) = @_;
$iter->CData ($self->getData);
}
sub _to_sax
{
my ($self, $doch, $dtdh, $enth) = @_;
$doch->start_cdata;
$doch->characters ( { Data => $self->getData } );
$doch->end_cdata;
}
######################################################################
package XML::DOM::Comment;
######################################################################
use vars qw{ @ISA @EXPORT_OK %EXPORT_TAGS %HFIELDS };
BEGIN
{
import XML::DOM::CharacterData qw( :DEFAULT :Fields );
lib/XML/DOM/Node.pod view on Meta::CPAN
Return an integer indicating the node type. See XML::DOM constants.
=item getNodeName
Return a property or a hardcoded string, depending on the node type.
Here are the corresponding functions or values:
Attr getName
AttDef getName
AttlistDecl getName
CDATASection "#cdata-section"
Comment "#comment"
Document "#document"
DocumentType getNodeName
DocumentFragment "#document-fragment"
Element getTagName
ElementDecl getName
EntityReference getEntityName
Entity getNotationName
Notation getName
ProcessingInstruction getTarget
lib/XML/Handler/BuildDOM.pm view on Meta::CPAN
sub entity_reference # was Default
{
my $self = $_[0];
my $name = $_[1]->{Name};
$self->{Element}->appendChild (
$self->{Document}->createEntityReference ($name));
undef $self->{LastText};
}
sub start_cdata
{
my $self = shift;
$self->{InCDATA} = 1;
}
sub end_cdata
{
my $self = shift;
$self->{InCDATA} = 0;
}
sub comment
{
my $self = $_[0];
local $XML::DOM::IgnoreReadOnly = 1;
samples/REC-xml-19980210.xml view on Meta::CPAN
The target names "<code>XML</code>", "<code>xml</code>", and so on are
reserved for standardization in this or future versions of this
specification.
The
XML <termref def='dt-notation'>Notation</termref> mechanism
may be used for
formal declaration of PI targets.
</p>
</div2>
<div2 id='sec-cdata-sect'>
<head>CDATA Sections</head>
<p><termdef id="dt-cdsection" term="CDATA Section"><term>CDATA sections</term>
may occur
anywhere character data may occur; they are
used to escape blocks of text containing characters which would
otherwise be recognized as markup. CDATA sections begin with the
string "<code><![CDATA[</code>" and end with the string
"<code>]]></code>":
<scrap lang="ebnf">
( run in 0.628 second using v1.01-cache-2.11-cpan-454fe037f31 )