Skip to content

Xml is formatted incorrectly #20354

Open
Open
@lawrencek76

Description

@lawrencek76

Issue Type: Bug

select from a table with xml field data saved like

<PersonName><FormattedName>Alfred Jefferson</FormattedName><GivenName>Alfred</GivenName><FamilyName>Jefferson</FamilyName></PersonName>

'''

when clicking on the xml to view it then displays with extra new lines and spaces within the element values actaully changes the data in the elements as follows

``` xml
<PersonName>
	<FormattedName>
		Alfred Jefferson
	</FormattedName>
	<GivenName>
		Alfred
	</GivenName>
	<FamilyName>
		Jefferson
	</FamilyName>
</PersonName>

the proper pretty print for the original xml that does not change the value of the nodes is

<PersonName>
	<FormattedName>Alfred Jefferson</FormattedName>
	<GivenName>Alfred</GivenName>
	<FamilyName>Jefferson</FamilyName>
</PersonName>

Azure Data Studio version: azuredatastudio 1.37.0 (d904740, 2022-06-14T01:05:12.352Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (12 x 2592)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.72GB (34.54GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (10)
Extension Author (truncated) Version
azuredatastudio-select-top-n jim 0.0.5
admin-tool-ext-win Mic 0.0.4
dacpac Mic 1.10.1
query-history Mic 0.1.0
schema-compare Mic 1.14.1
server-report Mic 0.2.3
azdata-sanddance msr 3.3.0
extra-sql-script-as pac 0.5.0
simple-data-scripter sea 0.1.6
vscodeintellicode Vis 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions