Skip to content

Unable to render XML version 1.1. #15

@sibprogrammer

Description

@sibprogrammer

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="workflow-support@3.8">
    <node class="cps.n.StepStartNode" plugin="workflow-cps@2644.v29a793dac95a">
        <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="workflow-api@1105.v3de5e2efac97">
            <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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions