How to get to Graph View of my XSD

Kirk Hansen 20 Reputation points
2023-02-07T23:09:02.7733333+00:00

I want to get a Graph View of the contents of my XSD file. Something like this (but for my XSD of course).Graph View

But when I drag the XSD file from the XML Schema Explorer ...Select XSD

and drop it onto the area that I take to be the Design Surface...

Design Surface

...nothing happens. You'll notice that the XSD name (LibraryElement.xsd) appears in the above shot in light gray...because that shot was taken during the drag. But when I then dropped the XSD, all sign of it just disappeared.

For reference, this is the actual XSD file (with the extension changed to trick this question-editor into accepting it):

LibraryElement.xml

Any ideas on where I've gone wrong?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,032 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 28,571 Reputation points Microsoft Vendor
    2023-02-08T07:19:23.6566667+00:00

    Hi @Kirk Hansen

    Welcome to Microsoft Q&A! 

    Your XML file is invalid.

    Please click on “Use XML editor to view and edit the underlying XML Schema file” to edit your XML Schema file. You can bind xmlns to the namespace name: http://www.w3.org/2001/XMLSchema

    <schema
      xmlns='http://www.w3.org/2001/XMLSchema'
    

    Then, drag the XSD file again. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Kirk Hansen 20 Reputation points
    2023-02-08T15:01:30.5+00:00

    [don't know how to delete this]

    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.