<?xml version="1.0" encoding="windows-1252"?>
<node id="714357" title="Re: Mixed XML content with XML::LibXML" created="2008-09-29 09:58:52" updated="2008-09-29 09:58:52">
<type id="11">
note</type>
<author id="438971">
ForgotPasswordAgain</author>
<data>
<field name="doctext">
I'd first of all call &lt;code&gt;$node-&gt;normalize&lt;/code&gt;, to make sure the text nodes aren't weirdly split apart. Then call &lt;code&gt;$node-&gt;firstChild&lt;/code&gt; (both documented in perldoc XML::LibXML::Node). You might also compare &lt;code&gt;$node-&gt;nodeType == XML_TEXT_NODE&lt;/code&gt; (see perldoc XML::LibXML "EXPORT TAGS" section for all the node types) to make sure it's a text node. I believe the "node name" of text nodes is '#text', so you could even try that.</field>
<field name="root_node">
714351</field>
<field name="parent_node">
714351</field>
</data>
</node>
