NewXMLGenerator.createCMDocument() returns null [message #723478] |
Thu, 08 September 2011 12:20  |
Eclipse User |
|
|
|
Hi all,
Just found out that NewXMLGenerator would be a great solution for me to create empty xml skeletons based on schemas.
However, the code snippet below returns cmDocument = null no matter what I do. Am I missing something really obvious here, or is this a bug?
schemaFileName = "file:///home/.../workspace3/xmlgeneratorplugin/myxsd.xsd";
CMDocument cmDocument = NewXMLGenerator.createCMDocument(schemaFileName, errorInfo);
The errorInfo[0] is empty, which strangely implies that all went fine.
I've tried different ways of passing the path including the IFile way...
Thanks,
Georg
|
|
|
|
|
|
Re: NewXMLGenerator.createCMDocument() returns null [message #879409 is a reply to message #879168] |
Thu, 31 May 2012 03:10   |
Eclipse User |
|
|
|
Hello Maria,
Unfortunately, I don't remember which plugins I added. It's been a long time since I had the problem. My approach has changed as well. I now modify the original eclipse xsd plugin to serve my purposes. In this approach all dependencies are solved when importing the plugin. Maybe this is the easiest way out for you too?
Really sloppy of me not to list the plugin dependencies that solved my problem. Sorry about that!
Here is the list on my dependencies tab.
org.eclipse.ui.ide;bundle-version="[3.5.0,4.0.0)",
org.eclipse.ui.views;bundle-version="[3.4.0,4.0.0)",
org.eclipse.jface.text;bundle-version="[3.5.0,4.0.0)",
org.eclipse.ui.workbench.texteditor;bundle-version="[3.5.0,4.0.0)",
org.eclipse.wst.sse.ui;bundle-version="[1.2.0,1.4.0)",
org.eclipse.wst.sse.core;bundle-version="[1.1.500,1.2.0)",
org.eclipse.ui;bundle-version="[3.5.0,4.0.0)",
org.eclipse.core.resources;bundle-version="[3.5.0,4.0.0)",
org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
org.eclipse.wst.common.uriresolver;bundle-version="[1.1.301,1.2.0)",
org.eclipse.wst.xml.core;bundle-version="[1.1.500,1.2.0)",
org.eclipse.wst.common.ui;bundle-version="[1.1.400,1.2.0)",
org.eclipse.wst.validation;bundle-version="[1.2.100,1.3.0)",
org.eclipse.core.expressions;bundle-version="[3.4.100,4.0.0)",
org.eclipse.core.filesystem;bundle-version="[1.3.0,2.0.0)",
Good luck!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03249 seconds