I'm fighting with this all the morning and can't see any entry point.
In my plugin I'm extending XMLMultiPageEditorPart and providing some visual preview to them. I would like also to show this xml document in another view (from another point of view also). These two "items" (editor and view) should work on the same model (I assume it would be IDOMModel/IDOMDocument). But...
How to get DOM model from mentioned editor? I've got access to StructuredTextEditor, but can't see how to get to xml tree.
Don't forget to call #releaseFromEdit() on the model when you're done.
You might also consider decoupling the view from the editor--the
selection sent across the workbench's selection service should contain
DOM Nodes, from which you can access the DOM Document and model if needed.
I am getting null values if i use xpath to get nodes using the IDoMDocument, but the same Xpath works if we use the traditional way to DocumentBuilder .
Does the xpath construction differ for IDOMDocument ?
My xml files looks like this,
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<widget xmlns="<some link>" id="foo123.id" version="1.0.0">
Hello World sample application that responds to the deviceready event.