Reputation: 11117
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 some reports that make it seem it cannot.
What menu or window is the option located under? I have looked under every menu as well as searched the plugins. My version of Netbeans: NetBeans IDE 7.0.1 (Build 201107282000)
Upvotes: 19
Views: 23913
Reputation: 7752
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.
Upvotes: 32