Generating an XML file from an XSD creates it without XMLSchema specs

In our XSD (made by a client), and in an old generated XML file (made by a previous dev with no explanation as to how it was made), it has expected XML Schema information, like:


<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="" elementFormDefault="qualified">


<?xml version="1.0" encoding="utf-8"?>
<opening_tag xmlns:xsi=""

Upon using PHPStorm (Mac) > Tools > XML Actions > Generate XML Document from XSD Schema - 

- the generated XML file is missing the opening `xml` tag, and the `opening_tag` doesn't contain an xmlns or xsi attribute.

I figured PHPStorm would generate them from either the XSD or a default.

What am I or PHPStorm getting wrong here?

1 comment

Hi. Please provide:

  • A screenshot of the generator dialog with populated values
  • The entire contents of the XSD schema file 

Please sign in to leave a comment.