79451627

Date: 2025-02-19 14:11:45
Score: 4.5
Natty:
Report link

Is it possible to remove the parent if it contains certain attribute and then link the child to parents parent which matches the attribute?

For example I have a tree that is mix of object and groups, objects and groups have a unique attribute to differentiate between groups and object. In this case is it possible to get object 1 as parent to object 2 and Object 3 by omitting the groups in between?

<Group="GroupA" uniqueidentifier="123">
   <Object="Object1" uniqueidentifier="456"
        <Group="GroupB" uniqueidentifier="123">
           <Object="Object2" uniqueidentifier="456"
    <Group="GroupC" uniqueidentifier="123">
           <Object="Object3" uniqueidentifier="456"
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Blacklisted phrase (1): is it possible to
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: user29711909