|
|
|
Re: Use WTP XML model for programatically modifying a file [message #213626 is a reply to message #213610] |
Mon, 12 May 2008 11:42  |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Abel Muiño wrote:
> David Carver wrote:
>> I would recommend checking out the SourceEditing Unit Tests for seeing
>> how to create a StructuredDocument without loading a file.
>
> I'm not familiar with WTP project structure (yet). Could you point me to
> the specific project so I can checkout and review it.
>
> Another question... is this also available in WTP 2.x or only in the
> upcoming 3.x versions?
2.x and 3.x have the ability to get the DOM from the StructuredDocument.
Actually all versions of WTP have this ability.
The source for the unit tests can be found in the Web Tools CVS
repository under
/cvsroot/webtools/sourceediting/tests
For there you can check out the
org.eclipse.wst.xml.ui.tests
org.eclipse.wst.xml.core.tests
org.eclipse.wst.sse.core.tests
org.eclipse.wst.sse.ui.tests
These should give you enough to get you going.
Dave
|
|
|
Powered by
FUDForum. Page generated in 0.03566 seconds