How do you use Netbeans to generate a sample XML file from an XSD? I see that this question has been asked before and it would appear that it can be done. Though, there are
From a project that contains the .xsd
:
New File
on the tool bar or File > New File
from the menuXML > XML Document
XML Schema-Constrained Document
, click nextBrowse
button and use By File
to navigate to the .xsd
Import
check box beside the file name, click nextFinish
to generateYou can use more than one .xsd
file to generate the .xml
. In this case it will use whichever .xsd
file you choose as Primary
to resolve any conflicts.