« Return to Thread: How to create "special" DataObjects (myself, not in layer)?

Re: How to create "special" DataObjects (myself, not in layer)?

by AntonioV :: Rate this Message:

Reply to Author | View in Thread

Hi Peter,

I think I don't understand the question. So let me explain what I understand:

You have a XML file with ".xml" extension. (You say it's a "config" file, what does that mean? Are you using it inside the "nbproject" directory integrating it as a part of the "build.xml"?). The contents of the XML file do not have a common "root" element (so one file can start with "<invoices>" and another can start with "<facturas>").

What you want to do is to create a DataObject from that file, and then use a MultiView to be able to edit it visually.

Am I right?

Thanks,
Antonio


epdv wrote:
Hello!

I've got a special xml config file, whose name may even change from
project to project. I've already created an ant project type (works :-)
), but now I want to create an XML multiview editor as described here:
http://blogs.sun.com/geertjan/entry/visual_editor_part_1.

My problem with this is, I'll not be able to declare my config file type
in layer, as it is completely project dependent. Worse, there's not even
any public or system id which could be used. So, how can I create an
XmlMultiViewDataObject from my node's performAction method? BTW, I guess
the object has to be created from my FileObject and has to be put into
Lookup somehow - how?

Kind regards

Peter

 « Return to Thread: How to create "special" DataObjects (myself, not in layer)?