xq icon indicating copy to clipboard operation
xq copied to clipboard

Unable to render XML version 1.1.

Open sibprogrammer opened this issue 2 years ago • 1 comments

Problem Statement

The utility fails on the attempt to render XML version 1.1.

Steps to Reproduce

xq xml-file.xml

Where xml-file.xml contains the following content:

<?xml version='1.1' encoding='UTF-8'?>
<Tag plugin="[email protected]">
    <node class="cps.n.StepStartNode" plugin="[email protected]">
        <parentIds>
            <string>17</string>
        </parentIds>
        <id>18</id>
        <descriptorId>org.jenkinsci.plugins.pipeline.modeldefinition.steps.ScriptStep</descriptorId>
    </node>
    <actions>
        <s.a.LogStorageAction/>
        <wf.a.TimingAction plugin="[email protected]">
            <startTime>1643040131437</startTime>
        </wf.a.TimingAction>
    </actions>
</Tag>

Actual Result

Error message saying: xml: unsupported version "1.1"; only version 1.0 is supported

Expected Result

The file is rendered properly.

Additional Info

One of the sources of such files is Jenkins.

sibprogrammer avatar Nov 18 '22 18:11 sibprogrammer

Corresponding issue in Go: https://github.com/golang/go/issues/25755

sibprogrammer avatar Nov 18 '22 18:11 sibprogrammer