Need to build a WYSIWYG XML editor

211 views
Skip to first unread message

NS Gopikrishnan

unread,
Jun 18, 2010, 1:45:38 AM6/18/10
to Google Web Toolkit
Hi all,

I want to develop a WYSIWYG XML editor for a custom schema.
I am new to GWT.
I wanted to know whether GWT will be the right framework for that.

* Whether XML DOM builders are available.
* I need to provide the view side using CSS.
* Validation of XML for every change in nodes.
* view the XML while editing the view (Not necessarily simultaneously)

Thanks in advance !

Richard Allen

unread,
Jun 22, 2010, 9:06:31 AM6/22/10
to Google Web Toolkit
You may want to simply wrap the excellent code editor CodeMirror
(http://marijn.haverbeke.nl/codemirror/). Someone has already wrapped
it for GWT: http://code.google.com/p/gwt-codemirror/

-Richard

aliman

unread,
Jun 22, 2010, 1:20:57 PM6/22/10
to Google Web Toolkit
Hi, I'm not sure this answers your question, but GWT does have an XML
API, see [1].

FWIW I did do some work previously with GWT and XML, but the lack of a
createElementNS method was a real blocker. You can seach an XML
document in a namespace aware manner, because the Node interface has a
getNamespaceURI() method, but you cannot build an XML document with
namespaces, except by constructing the document as text, then calling
XMLParser.parse(). If you want to create a code editor, that may be a
valid workaround for you. I did write some convenience code to work
around this a while ago, see [2], however this is a bit of a hack, and
I've since moved away from GWT to using XForms and Orbeon [3] for that
particular project, because of the much better XML support.

Hth

Alistair

[1] http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/xml/client/package-summary.html
[2] http://code.google.com/p/dsn-chassis/source/browse/trunk/generic/lib/gwt/src/main/java/org/cggh/chassis/generic/xml/client/
[3] http://www.orbeon.com/

On Jun 18, 1:45 am, NS Gopikrishnan <nksgopikrish...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages