xmllint规范化不对元素和所有子元素进行排序

时间:2017-04-22 19:08:09

标签: xml xmllint c14n

我们如何使用xmllint c14n选项对以下输出进行排序。

我尝试了下面的选项,但我没有看到任何排序发生在这里。 我希望对所有元素和子元素进行排序。

xmllint c14n

xmllint --exc-c14n

    <class-of-service>
            <rewrite-rules>
                <exp>
                    <name>BEST-EFFORT</name>
                    <forwarding-class>
                        <name>DATA</name>
                        <loss-priority>
                            <name>low</name>
                            <code-point>BEST-EFFORT</code-point>
                        </loss-priority>
                        <loss-priority>
                            <name>high</name>
                            <code-point>BEST-EFFORT</code-point>
                        </loss-priority>
                    </forwarding-class>
                </exp>
            </rewrite-rules>
            <code-point-aliases>
                <exp>
                    <name>BEST-EFFORT</name>
                    <bits>000</bits>
                </exp>
                <exp>
                    <name>EXP1</name>
                    <bits>001</bits>
                </exp>
            </code-point-aliases>
            <forwarding-classes>
                <class>
                    <name>DATA</name>
                    <queue-num>0</queue-num>
                </class>
                <class>
                    <name>REAL-TIME</name>
                    <queue-num>1</queue-num>
                </class>
            </forwarding-classes>
        </class-of-service>

0 个答案:

没有答案