Hi,
This might be a stupid question, but I'm new to perl and xml.
Is there a way to get the name of xml tags from a xml file using SML::SIMPLE.
e.g.
<root>
<root2>
<tag1>some value</tag1>
<tag2>some value</tag2>
<tag3>some value</tag3>
</root2>
</root>
I know inorder to get the values within the tags, I need to know the tags first. So is there an easy way to get the name of the tags
In the above example, I need to get "tag1, tag2 and tag3"
then I can use xml::simple to retrieve the data.
Thanks for the help..
This might be a stupid question, but I'm new to perl and xml.
Is there a way to get the name of xml tags from a xml file using SML::SIMPLE.
e.g.
<root>
<root2>
<tag1>some value</tag1>
<tag2>some value</tag2>
<tag3>some value</tag3>
</root2>
</root>
I know inorder to get the values within the tags, I need to know the tags first. So is there an easy way to get the name of the tags
In the above example, I need to get "tag1, tag2 and tag3"
then I can use xml::simple to retrieve the data.
Thanks for the help..