2

我们如何使用 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>
4

0 回答 0