What\'s the way to get a tag name and attribute name in XML?
If I have a XML file like this:
This is probably one of the shortest solutions:
when this transformation is applied on the following XML document (your fragment wrapped into a top element):
the wanted, correct result is produced:
apple color banana color sugar taste cat size