I have an xml with this structure:
<emails>
<record>
<field name="host"><![CDATA[yahoo]]></field>
<field name="user"><![CDATA[abc]]></field>
</record>
<record>
<field name="host"><![CDATA[gmail]]></field>
<field name="user"><![CDATA[abc]]></field>
</record>
<record>
<field name="host"><![CDATA[yahoo]]></field>
<field name="user"><![CDATA[cdx]]></field>
</record>
</emails>
And, I want to count the number of records where host = yahoo. I know that I need to use count(), but I couldn't figure out how.
<![CDATA[yahoo]]>
not![CDATA[yahoo]]