Validate XML Using Open XML Package Editor

Ken Krugh 116 Reputation points
2021-07-02T14:27:37.127+00:00

Had this issue on VS 2012, never found a solution, using VS 2019 Community now.

When using the Open XML Package editor to edit the custom UI XML in a Word template the Intellisense is really great but it doesn't validate as I type. If I copy all the code from the template XML file and paste it into a new XML file it validates.

I'm guessing this is because VS isn't "seeing" it as just an XML file when editing within the template package.

Is there a way to force VS to validate the code that's on the screen so I don't have to copy and paste it out to validate?

Thanks!

Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Krugh 116 Reputation points
    2021-07-06T01:56:04.377+00:00

    I will post it there, thanks.

    Are you saying that VS is validating on the fly for you?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.