|
|
XML::GDOME - Interface to Level 2 DOM gdome2 library
use XML::GDOME;
my $doc = XML::GDOME->createDocFromURI("foo.xml", GDOME_LOAD_VALIDATING | GDOME_LOAD_SUBSTITUTE_ENTITIES); my $root = $doc->documentElement; my $el = $doc->createElement("RELEASE"); my $txtnode = $doc->createTextNode("0.6.x"); my @nodes = $doc->findnodes("//*"); $el->appendChild($txtnode); $root->appendChild($el); my $str = $doc->toString;
XML::GDOME is a perl module that provides the DOM Level 2 Core API for accessing XML documents.
It uses a XS wrapper around the gdome2 library, located at http://phd.cs.unibo.it/gdome2/
$mode is the bitwise or of GDOME_LOAD_PARSING, GDOME_LOAD_VALIDATING, GDOME_LOAD_RECOVERING, and GDOME_LOAD_SUBSTITUTE_ENTITIES.
$dtd is optional, and should be a XML::GDOME::DocumentType object, or
undef
.
T.J. Mather, <tjmather@tjmather.com>
XML::GDOME is based on XML::LibXML. Matt Sergeant and Christian Glahn were the authors of XML::LibXML.
Bug fixes and feature enhancements generously provided by:
Richard Titmuss Martin Oldfield
Thanks!
Copyright (c) 2001, 2002 T.J. Mather. Copyright 2001, AxKit.com Ltd. All rights reserved. XML::GDOME is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
the XML::GDOME::Attr manpage, the XML::GDOME::CDATASection manpage, the XML::GDOME::CharacterData manpage, the XML::GDOME::Comment manpage, the XML::GDOME::DocumentFragment manpage, the XML::GDOME::Document manpage, the XML::GDOME::DocumentType manpage, the XML::GDOME::Element manpage, the XML::GDOME::Entity manpage, the XML::GDOME::EntityReference manpage, the XML::GDOME::NamedNodeMap manpage, the XML::GDOME::NodeList manpage, the XML::GDOME::Node manpage, the XML::GDOME::Notation manpage, the XML::GDOME::ProcessingInstruction manpage, the XML::GDOME::Text manpage
the XML::GDOME::XPath::Evaluator manpage, the XML::GDOME::XPath::Namespace manpage, the XML::GDOME::XPath::NSResolver manpage, the XML::GDOME::XPath::Result manpage, the XML::GDOME::XPath::SetIterator manpage
the XML::GDOME::SAX::Builder manpage, the XML::GDOME::SAX::Generator manpage, the XML::GDOME::SAX::Parser manpage