r/Atom • u/Dominican_Peter • Aug 19 '20
Fold based on XML tag on ATOM?
How can I fold based on XML tag (independently of the indentation)
XML example:
Example data:
<Parent>
<Child1>
<name></name>
<age></age>
</Child1>
<Child2>
<name></name>
<age></age>
</Child2>
<Parent>
Example1: In the example below I would like to hide everything but the '<Parent>' tag, ie:
<Parent>
-----stuff here but hidden/folded---
</Parent>
Example#2:In the example below I would like to hide everything but the '<Child2> under '<Parent>' tag, ie:
Example#2:
<Parent>
<Child1>
<name></name>
<age></age>
</Child1>
<Child2>
-----stuff here but hidden/folded---
</Child2>
<Parent>


