Skip to content

Strict response XML formatter issue #1748

@tmb-0-jyskefinans-dk

Description

@tmb-0-jyskefinans-dk

Describe the bug
When getting a xml response that has unclear closing tags the XML formatter strips the xml to the next parent closing tag eg Value (hint the space between the property name and the closing >).
this will end all in the same parent tag eg.

<items>
  <item>
    <firstName>John</firstName > <!-- Everything after this will be stripped -->
    <lastName>Doe</lastName>
  </item>
  <item>
    <firstName>Jane</firstName>
    <lastName>Doe</lastName>
  </item>
</items><!-- This tag will still be showen -->

Taking for example a get request and return it in a curl or a browser they still give the full raw response back.

To Reproduce
get a response that has unclear closing xml tags eg. space between property name and closing >
(</someProperty >)

Expected behavior
Either show data as is or show visual show that xml is missing due to invalid xml
(what works best for the most)

Platform:

  • OS: Windows
  • vscode version: 1.115.0
  • node version: 22.22.1
  • extension version: 2.40.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    PriorityImplement this asapbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions