# phpman > perldoc > XML::LibXML

## NAME
    [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) - Perl Binding for libxml2

## SYNOPSIS
      use [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown);
      my $dom = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->load_xml(string => <<'EOT');
      <some-xml/>
      EOT

      $Version_String = [XML::LibXML::LIBXML_DOTTED_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLDOTTEDVERSION/markdown);
      $Version_ID = [XML::LibXML::LIBXML_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLVERSION/markdown);
      $DLL_Version = [XML::LibXML::LIBXML_RUNTIME_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLRUNTIMEVERSION/markdown);
      $libxmlnode = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->import_GDOME( $node, $deep );
      $gdomenode = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->export_GDOME( $node, $deep );

## DESCRIPTION
    This module is an interface to libxml2, providing XML and HTML parsers with DOM, SAX and
    XMLReader interfaces, a large subset of DOM Layer 3 interface and a [XML::XPath](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AXPath/markdown)-like interface to
    XPath API of libxml2. The module is split into several packages which are not described in this
    section; unless stated otherwise, you only need to "use [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown);" in your programs.

    For further information, please check the following documentation:

    [XML::LibXML::Parser](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AParser/markdown)
        Parsing XML files with [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)

    [XML::LibXML::DOM](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADOM/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) Document Object Model (DOM) Implementation

    [XML::LibXML::SAX](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ASAX/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) direct SAX parser

    [XML::LibXML::Reader](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AReader/markdown)
        Reading XML with a pull-parser

    [XML::LibXML::Dtd](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADtd/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) frontend for DTD validation

    [XML::LibXML::RelaxNG](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ARelaxNG/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) frontend for RelaxNG schema validation

    [XML::LibXML::Schema](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ASchema/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) frontend for W3C Schema schema validation

    [XML::LibXML::XPathContext](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AXPathContext/markdown)
        API for evaluating XPath expressions with enhanced support for the evaluation context

    [XML::LibXML::InputCallback](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AInputCallback/markdown)
        Implementing custom URI Resolver and input callbacks

    [XML::LibXML::Common](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ACommon/markdown)
        Common functions for [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) related Classes

    The nodes in the Document Object Model (DOM) are represented by the following classes (most of
    which "inherit" from [XML::LibXML::Node](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ANode/markdown)):

    [XML::LibXML::Document](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocument/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) class for DOM document nodes

    [XML::LibXML::Node](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ANode/markdown)
        Abstract base class for [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) DOM nodes

    [XML::LibXML::Element](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AElement/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) class for DOM element nodes

    [XML::LibXML::Text](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AText/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) class for DOM text nodes

    [XML::LibXML::Comment](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AComment/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) class for comment DOM nodes

    [XML::LibXML::CDATASection](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ACDATASection/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) class for DOM CDATA sections

    [XML::LibXML::Attr](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AAttr/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) DOM attribute class

    [XML::LibXML::DocumentFragment](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocumentFragment/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)'s DOM L2 Document Fragment implementation

    [XML::LibXML::Namespace](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ANamespace/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) DOM namespace nodes

    [XML::LibXML::PI](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3API/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) DOM processing instruction nodes

ENCODINGS SUPPORT IN [XML::LIBXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALIBXML/markdown)
    Recall that since version 5.6.1, Perl distinguishes between character strings (internally
    encoded in UTF-8) and so called binary data and, accordingly, applies either character or byte
    semantics to them. A scalar representing a character string is distinguished from a byte string
    by special flag (UTF8). Please refer to *perlunicode* for details.

    [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)'s API is designed to deal with many encodings of XML documents completely
    transparently, so that the application using [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) can be completely ignorant about the
    encoding of the XML documents it works with. On the other hand, functions like
    "[XML::LibXML::Document](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocument/markdown)->setEncoding" give the user control over the document encoding.

    To ensure the aforementioned transparency and uniformity, most functions of [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) that
    work with in-memory trees accept and return data as character strings (i.e. UTF-8 encoded with
    the UTF8 flag on) regardless of the original document encoding; however, the functions related
    to I/O operations (i.e. parsing and saving) operate with binary data (in the original document
    encoding) obeying the encoding declaration of the XML documents.

    Below we summarize basic rules and principles regarding encoding:

    1.  Do NOT apply any encoding-related PerlIO layers (":utf8" or ":encoding(...)") to file
        handles that are an input for the parses or an output for a serializer of (full) XML
        documents. This is because the conversion of the data to/from the internal character
        representation is provided by libxml2 itself which must be able to enforce the encoding
        specified by the "<?xml version="1.0" encoding="..."?>" declaration. Here is an example to
        follow:

          use [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown);
          # load
          open my $fh, '<', 'file.xml';
          binmode $fh; # drop all PerlIO layers possibly created by a use open pragma
          $doc = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->load_xml(IO => $fh);

          # save
          open my $out, '>', 'out.xml';
          binmode $out; # as above
          $doc->toFH($out);
          # or
          print {$out} $doc->toString();

    2.  All functions working with DOM accept and return character strings (UTF-8 encoded with UTF8
        flag on). E.g.

          my $doc = [XML::LibXML::Document](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocument/markdown)->new('1.0',$some_encoding);
          my $element = $doc->createElement($name);
          $element->appendText($text);
          $xml_fragment = $element->toString(); # returns a character string
          $xml_document = $doc->toString(); # returns a byte string

        where $some_encoding is the document encoding that will be used when saving the document,
        and $name and $text contain character strings (UTF-8 encoded with UTF8 flag on). Note that
        the method "toString" returns XML as a character string if applied to other node than the
        Document node and a byte string containing the appropriate

          <?xml version="1.0" encoding="..."?>

        declaration if applied to a [XML::LibXML::Document](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocument/markdown).

    3.  DOM methods also accept binary strings in the original encoding of the document to which the
        node belongs (UTF-8 is assumed if the node is not attached to any document). Exploiting this
        feature is NOT RECOMMENDED since it is considered bad practice.

          my $doc = [XML::LibXML::Document](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocument/markdown)->new('1.0','iso-8859-2');
          my $text = $doc->createTextNode($some_latin2_encoded_byte_string);
          # WORKS, BUT NOT RECOMMENDED!

    *NOTE:* libxml2 support for many encodings is based on the iconv library. The actual list of
    supported encodings may vary from platform to platform. To test if your platform works correctly
    with your language encoding, build a simple document in the particular encoding and try to parse
    it with [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) to see if the parser produces any errors. Occasional crashes were reported
    on rare platforms that ship with a broken version of iconv.

## THREAD SUPPORT
    [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) since 1.67 partially supports Perl threads in Perl >= 5.8.8. [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) can be used
    with threads in two ways:

    By default, all [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) classes use CLONE_SKIP class method to prevent Perl from copying
    [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)::* objects when a new thread is spawn. In this mode, all [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)::* objects are
    thread specific. This is the safest way to work with [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) in threads.

    Alternatively, one may use

      use threads;
      use [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) qw(:threads_shared);

    to indicate, that all [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) node and parser objects should be shared between the main
    thread and any thread spawn from there. For example, in

      my $doc = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->load_xml(location => $filename);
      my $thr = threads->new(sub{
        # code working with $doc
        1;
      });
      $thr->join;

    the variable $doc refers to the exact same [XML::LibXML::Document](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ADocument/markdown) in the spawned thread as in the
    main thread.

    Without using mutex locks, parallel threads may read the same document (i.e. any node that
    belongs to the document), parse files, and modify different documents.

    However, if there is a chance that some of the threads will attempt to modify a document (or
    even create new nodes based on that document, e.g. with "$doc->createElement") that other
    threads may be reading at the same time, the user is responsible for creating a mutex lock and
    using it in *both* in the thread that modifies and the thread that reads:

      my $doc = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->load_xml(location => $filename);
      my $mutex : shared;
      my $thr = threads->new(sub{
         lock $mutex;
         my $el = $doc->createElement('foo');
         # ...
        1;
      });
      {
        lock $mutex;
        my $root = $doc->documentElement;
        say $root->name;
      }
      $thr->join;

    Note that libxml2 uses dictionaries to store short strings and these dictionaries are kept on a
    document node. Without mutex locks, it could happen in the previous example that the thread
    modifies the dictionary while other threads attempt to read from it, which could easily lead to
    a crash.

## VERSION INFORMATION
    Sometimes it is useful to figure out, for which version [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) was compiled for. In most
    cases this is for debugging or to check if a given installation meets all functionality for the
    package. The functions [XML::LibXML::LIBXML_DOTTED_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLDOTTEDVERSION/markdown) and [XML::LibXML::LIBXML_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLVERSION/markdown)
    provide this version information. Both functions simply pass through the values of the similar
    named macros of libxml2. Similarly, [XML::LibXML::LIBXML_RUNTIME_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLRUNTIMEVERSION/markdown) returns the version of
    the (usually dynamically) linked libxml2.

    [XML::LibXML::LIBXML_DOTTED_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLDOTTEDVERSION/markdown)
          $Version_String = [XML::LibXML::LIBXML_DOTTED_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLDOTTEDVERSION/markdown);

        Returns the version string of the libxml2 version [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) was compiled for. This will be
        "2.6.2" for "libxml2 2.6.2".

    [XML::LibXML::LIBXML_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLVERSION/markdown)
          $Version_ID = [XML::LibXML::LIBXML_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLVERSION/markdown);

        Returns the version id of the libxml2 version [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) was compiled for. This will be
        "20602" for "libxml2 2.6.2". Don't mix this version id with $[XML::LibXML::VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AVERSION/markdown). The
        latter contains the version of [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) itself while the first contains the version of
        libxml2 [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) was compiled for.

    [XML::LibXML::LIBXML_RUNTIME_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLRUNTIMEVERSION/markdown)
          $DLL_Version = [XML::LibXML::LIBXML_RUNTIME_VERSION](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ALIBXMLRUNTIMEVERSION/markdown);

        Returns a version string of the libxml2 which is (usually dynamically) linked by
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown). This will be "20602" for libxml2 released as "2.6.2" and something like
        "20602-CVS2032" for a CVS build of libxml2.

        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) issues a warning if the version of libxml2 dynamically linked to it is less than
        the version of libxml2 which it was compiled against.

## EXPORTS
    By default the module exports all constants and functions listed in the :all tag, described
    below.

## EXPORT TAGS
    ":all"
        Includes the tags ":libxml", ":encoding", and ":ns" described below.

    ":libxml"
        Exports integer constants for DOM node types.

          XML_ELEMENT_NODE            => 1
          XML_ATTRIBUTE_NODE          => 2
          XML_TEXT_NODE               => 3
          XML_CDATA_SECTION_NODE      => 4
          XML_ENTITY_REF_NODE         => 5
          XML_ENTITY_NODE             => 6
          XML_PI_NODE                 => 7
          XML_COMMENT_NODE            => 8
          XML_DOCUMENT_NODE           => 9
          XML_DOCUMENT_TYPE_NODE      => 10
          XML_DOCUMENT_FRAG_NODE      => 11
          XML_NOTATION_NODE           => 12
          XML_HTML_DOCUMENT_NODE      => 13
          XML_DTD_NODE                => 14
          XML_ELEMENT_DECL            => 15
          XML_ATTRIBUTE_DECL          => 16
          XML_ENTITY_DECL             => 17
          XML_NAMESPACE_DECL          => 18
          XML_XINCLUDE_START          => 19
          XML_XINCLUDE_END            => 20

    ":encoding"
        Exports two encoding conversion functions from [XML::LibXML::Common](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ACommon/markdown).

          encodeToUTF8()
          decodeFromUTF8()

    ":ns"
        Exports two convenience constants: the implicit namespace of the reserved "xml:" prefix, and
        the implicit namespace for the reserved "xmlns:" prefix.

          XML_XML_NS    => '<http://www.w3.org/XML/1998/namespace>'
          XML_XMLNS_NS  => '<http://www.w3.org/2000/xmlns/>'

## RELATED MODULES
    The modules described in this section are not part of the [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) package itself. As they
    support some additional features, they are mentioned here.

    [XML::LibXSLT](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXSLT/markdown)
        XSLT 1.0 Processor using libxslt and [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)

    [XML::LibXML::Iterator](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AIterator/markdown)
        [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) Implementation of the DOM Traversal Specification

    [XML::CompactTree::XS](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ACompactTree%3A%3AXS/markdown)
        Uses [XML::LibXML::Reader](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3AReader/markdown) to very efficiently to parse XML document or element into native
        Perl data structures, which are less flexible but significantly faster to process then DOM.

[XML::LIBXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALIBXML/markdown) AND [XML::GDOME](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGDOME/markdown)
    Note: *THE FUNCTIONS DESCRIBED HERE ARE STILL EXPERIMENTAL*

    Although both modules make use of libxml2's XML capabilities, the DOM implementation of both
    modules are not compatible. But still it is possible to exchange nodes from one DOM to the
    other. The concept of this exchange is pretty similar to the function cloneNode(): The
    particular node is copied on the low-level to the opposite DOM implementation.

    Since the DOM implementations cannot coexist within one document, one is forced to copy each
    node that should be used. Because you are always keeping two nodes this may cause quite an
    impact on a machines memory usage.

    [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) provides two functions to export or import GDOME nodes: import_GDOME() and
### export_GDOME
    flag works as in cloneNode().

    The two functions allow one to export and import [XML::GDOME](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGDOME/markdown) nodes explicitly, however,
    [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) also allows the transparent import of [XML::GDOME](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGDOME/markdown) nodes in functions such as
### appendChild
    functions [XML::GDOME](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGDOME/markdown) nodes are always cloned in advance. Thus if the original node is modified
    after the operation, the node in the [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) document will not have this information.

    import_GDOME
          $libxmlnode = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->import_GDOME( $node, $deep );

        This clones an [XML::GDOME](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGDOME/markdown) node to an [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) node explicitly.

    export_GDOME
          $gdomenode = [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown)->export_GDOME( $node, $deep );

        Allows one to clone an [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) node into an [XML::GDOME](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGDOME/markdown) node.

## CONTACTS
    For bug reports, please use the CPAN request tracker on
    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-LibXML>

    For suggestions etc., and other issues related to [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown) you may use the perl XML mailing
    list ("<perl-xml@listserv.ActiveState.com>"), where most XML-related Perl modules are discussed.
    In case of problems you should check the archives of that list first. Many problems are already
    discussed there. You can find the list's archives and subscription options at
    <<http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/perl-xml>>.

## AUTHORS
    Matt Sergeant, Christian Glahn, Petr Pajas

## VERSION
    2.0134

## COPYRIGHT
    2001-2007, AxKit.com Ltd.

    2002-2006, Christian Glahn.

    2006-2009, Petr Pajas.

## LICENSE
    This program is free software; you can redistribute it and/or modify it under the same terms as
    Perl itself.

