Hi,
use XMLDataObject.getDocument() to access the DOM. After modifying the DOM,
you can update the file like this:
final FileObject file = getPrimaryFile();
file.getFileSystem().runAtomicAction(() -> {
final FileLock l = file.lock();
try (final OutputStream
I have created a similar plugin for CSV files.
Please take a look
https://bitbucket.org/draganbjedov/netbeans-csv-editor/src/master/
Hope it helps.
нед, 17. јан 2021. у 23:13 Will Hartung је
написао/ла:
> I have a XMLMultiView from the generic New File Type wizard.
>
> I'm creating the GUI form