I have an XML like this
<items>
<item>
<name>A</name>
<phone>1111111</phone>
</item>
<item>
<name>B</name>
<phone>2222222</phone>
</item>
</items>
How can I get the unique nodeNames into an array, like array("name","phone");