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)
We can use Eclipse IDE to easily generate XML from the XSD file. Just follow the below steps to get XML from XSD. Select XSD File in project, right click for Menu and select Generate > XML File… Provide the XML file Name and XML File location in the popup window.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With