XML-GDOME
view release on metacpan or search on metacpan
lib/XML/GDOME/ProcessingInstruction.pod
lib/XML/GDOME/Text.pod
lib/XML/GDOME/SAX/Builder.pm
lib/XML/GDOME/SAX/Generator.pm
lib/XML/GDOME/SAX/Parser.pm
lib/XML/GDOME/XPath/Evaluator.pod
lib/XML/GDOME/XPath/Namespace.pod
lib/XML/GDOME/XPath/NSResolver.pod
lib/XML/GDOME/XPath/Result.pod
t/01_basic.t
t/02_cdata.t
t/03_document.t
t/04_dtd.t
t/05_element.t
t/06_namednodemap.t
t/07_node.t
t/08_xpath.t
t/09_sax.t
t/10_callbacks.t
t/11_encode.t
t/examplea.xml
#TODO
my %class_description = ();
my %abbrv_lookup;
my %return_var = (Document => 'doc',
ProcessingInstruction => 'pi',
DocumentFragment => 'docFrag',
Comment => 'comment',
DOMImplementation => 'DOMImpl',
CDATASection => 'cdata',
Element => 'elem',
Node => 'node',
Event => 'event',
EntityReference => 'entRef',
DOMString => 'str',
Boolean => 'bool',
Text => 'text',
DocumentType => 'docType',
NodeList => 'nodeList',
Attr => 'attr',
lib/XML/GDOME/Document.pod view on Meta::CPAN
XML::GDOME::Document - Interface Document implementation.
=head1 SYNOPSIS
$docType = $doc->getDoctype();
$elem = $doc->getDocumentElement();
$DOMImpl = $doc->getImplementation();
$attr = $doc->createAttribute($name);
$attr = $doc->createAttributeNS($namespaceURI,$qualifiedName);
$cdata = $doc->createCDATASection($data);
$comment = $doc->createComment($data);
$docFrag = $doc->createDocumentFragment();
$elem = $doc->createElement($tagName);
$elem = $doc->createElementNS($namespaceURI,$qualifiedName);
$entRef = $doc->createEntityReference($name);
$pi = $doc->createProcessingInstruction($target,$data);
$text = $doc->createTextNode($data);
$elem = $doc->getElementById($elementId);
$nodeList = $doc->getElementsByTagName($tagname);
$nodeList = $doc->getElementsByTagNameNS($namespaceURI,$localName);
lib/XML/GDOME/Document.pod view on Meta::CPAN
I<C<namespaceURI>>: The namespace URI of the attribute to create
I<C<qualifiedName>>: The qualified name of the attribute to create
I<Returns>: a new Attr object with the following attributes: %Node.nodeName = I<qualifiedName>, %Node.namespaceURI = I<namespaceURI>, %Node.prefix = prefix, extracted from I<qualifiedName>, %Node.localName = localName, extracted from I<qualifiedName>...
C<GDOME_NAMESPACE_ERR>: Raised if the I<qualifiedName> is malformed, if the I<qualifiedName> has a prefix and the I<namespaceURI> is %NUKK, if the I<qualifiedName> has a prefix that is "xml" and the I<namespaceURI> is different from "http://www.w3.or...
=item $cdata = $doc->createCDATASection($data);
Creates a CDATASection node whose value is the specified string.
I<C<data>>: The data for the CDATASection contents
I<Returns>: the new CDATASection object.
=item $comment = $doc->createComment($data);
t/03_document.t view on Meta::CPAN
$tdoc = $txt->ownerDocument;
ok($tdoc->gdome_ref, $doc->gdome_ref);
undef $tdoc;
ok($txt->nodeName,"#text");
ok($txt->nodeValue,"<Test>Text Test</Test>");
my $cds = $doc->createCDATASection("<Test>Text Test</Test>");
$tdoc = $cds->ownerDocument;
ok($tdoc->gdome_ref, $doc->gdome_ref);
undef $tdoc;
ok($cds->nodeName,"#cdata-section");
ok($cds->nodeValue,"<Test>Text Test</Test>");
my $cmt = $doc->createComment("dududu dadada");
$tdoc = $cmt->ownerDocument;
ok($tdoc->gdome_ref, $doc->gdome_ref);
undef $tdoc;
ok($cmt->nodeName,"#comment");
ok($cmt->nodeValue,"dududu dadada");
my $pi = $doc->createProcessingInstruction("sqlprocessor","SELECT * FROM blah");
( run in 0.334 second using v1.01-cache-2.11-cpan-454fe037f31 )