I use SimpleXMLElement class for working with xml files in my project.
My question is: how to get an attribute value of some tag with some attribute? You may assume I know the name of the tag, the name of the attribute and it's location inside the xml file. For example, for such a string <someTag cp="c2">
knowing values 'someTag' and 'cp' I want to obtain the string "c2".
Thanks is advance.