Class QNameComparator

  • All Implemented Interfaces:
    Comparator<QName>

    public class QNameComparator
    extends Object
    implements Comparator<QName>
    Compares based on prefixes and local names as follows:
    1. first ns prefixes
    2. then prefixed names
    3. only afterwards non-prefixed names
    The latter case does not matter for the order, except when two names are equal. Only then the case will be considered as well.