Sorting of elements in the 'Element' view
Posted: Thu Oct 01, 2009 4:05 am
I am working with XML files that have an assigned XML Schema. The current version of Oxygen 10.3 uses the XML Schema information and the position of the cursor in the XML file to sort and group the elements in the 'Elements' view. Elements that cannot be placed at the cursor are placed in a second group and greyed-out.
A feature that I would like to see is a two-axis sort driven by two buttons on a new toolbar (similar as in the 'Outline' view) for elements in the 'Element' view.
One button changes between 'natural' order (or the order specified by the sequence in the XML schema) and the 'alphabetical' order (that we currently have).
The second button toggles between one group containing both the valid and invalid (greyed-out) elements and two groups with only the valid in the first group and invalid elements in the second group (which we have now).
Whether in one group or two groups, the elements are sorted as 'natural' or 'alphabetical'.
If I have selected an element, then toggling between the groups and sorts keeps the selected element in within the visible part of the view. The selected element is not deselected for sorting/grouping.
I would find this very useful for building XML samples from XML schemas where the XML schema(s) have large numbers (hundred or more) of elements in different sequences. With this feature, I can sort 'alphabetical' to find an element that I know exists, and then quickly toggle the sort order back to 'natural' order to see where it located in the XML schema sequence.
A feature that I would like to see is a two-axis sort driven by two buttons on a new toolbar (similar as in the 'Outline' view) for elements in the 'Element' view.
One button changes between 'natural' order (or the order specified by the sequence in the XML schema) and the 'alphabetical' order (that we currently have).
The second button toggles between one group containing both the valid and invalid (greyed-out) elements and two groups with only the valid in the first group and invalid elements in the second group (which we have now).
Whether in one group or two groups, the elements are sorted as 'natural' or 'alphabetical'.
If I have selected an element, then toggling between the groups and sorts keeps the selected element in within the visible part of the view. The selected element is not deselected for sorting/grouping.
I would find this very useful for building XML samples from XML schemas where the XML schema(s) have large numbers (hundred or more) of elements in different sequences. With this feature, I can sort 'alphabetical' to find an element that I know exists, and then quickly toggle the sort order back to 'natural' order to see where it located in the XML schema sequence.