Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
This repository was archived by the owner on May 13, 2024. It is now read-only.

Formatting is Removing Element Prefixes #14

@ledbutter

Description

@ledbutter

If I have an XML document like this:

<?xml version="1.0" encoding="utf-8"?>
<Foo xmlns:f="http://foo.com/ns" xmlns="urn:epcglobal:epcis:xsd:1">
<Element xmlns="">
<Parent>
<f:Other>
</f:Other>
</Parent>
</Element>
</Foo>

And I then format it, it looks like this (notice the missing f: prefix on Other):

<?xml version="1.0" encoding="utf-8"?>
<Foo xmlns:f="http://foo.com/ns" xmlns="urn:epcglobal:epcis:xsd:1">
	<Element xmlns="">
		<Parent>
			<Other>
			</Other>
		</Parent>
	</Element>
</Foo>

This is obviously a contrived example, but we are dealing with an external company which embeds an element of their own namespace inside an element in a different namespace. VS 2017 handles this without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions