I have a doubt and it is when to use an attribute and when a child or grandchild.
For example, I can have an element with two attribute but I can have two this element with two children, one for each attribute.
So my question is when it is a good idea to use attributes and when to use children.