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:

XSD:

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

XML:

<?xml version="1.0" encoding="utf-8"?>
<opening_tag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="spec_v2.xsd">

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?

0
1 comment

Hi. Please provide:

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

Please sign in to leave a comment.