473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

WYSIWYG XML Editor

Hello,

This may be a dumb question, but here goes. I need to create an XML WYSIWYG
editor. I know there are some out there, but this is going to have some
custom stuff that pertains only to some of our other software. What would be
the best way to begin this? What control should I use? I have XML and .NET
experience, but I'm at a loss....

Thanks for any help, I really appreciate it.

Thanks,
Nick
Jul 21 '05 #1
3 1763
> This may be a dumb question, but here goes. I need to create an XML WYSIWYG
editor. I know there are some out there, but this is going to have some
custom stuff that pertains only to some of our other software.


XML, unlike HTML, was created to encode structure, not format.
So there is no such thing as "WYSIWYG."

Tags have no significance without a style sheet.

And in other cases the tags denote sounds (see MusicXML):
http://www.recordare.com/xml/mutxml.html
3D scenes (VRML), math formulas (MathML2)
or some function calls (SOAP).

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email
Jul 21 '05 #2
Thanks for the reply Mihai. I understand the differences between XML and HTML
and that I'll have to use XSL. There are some products out there that do what
I want (www.xopus.com and www.xeditnet.com to a lesser extent), but we want
to develop one of our own.

Thanks again.

Nick

"Mihai N." wrote:
This may be a dumb question, but here goes. I need to create an XML WYSIWYG
editor. I know there are some out there, but this is going to have some
custom stuff that pertains only to some of our other software.


XML, unlike HTML, was created to encode structure, not format.
So there is no such thing as "WYSIWYG."

Tags have no significance without a style sheet.

And in other cases the tags denote sounds (see MusicXML):
http://www.recordare.com/xml/mutxml.html
3D scenes (VRML), math formulas (MathML2)
or some function calls (SOAP).

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email

Jul 21 '05 #3
Hi Nick,

I am the author of XEditNet. Am interested to hear what you thought of
it as it's currently in Alpha and I know there are lots of missing
features - what did you miss in it the most, and what issues did you
find? I'm working on the plugin API for it so ultimately it will be
customisable with .NET add-ons. What would you need in this area to fit
it to your scenario?

Writing a WYSIWYG editor, especially for XML is not trivial as I'm sure
you've come to realise. There are some nice architectural featurs in
the .NET XML APIs which help with the basic groundwork though. I'd be
glad to discuss some of these offline... use the contact link at
xeditnet.com.

At the very beginning I looked at the Mozilla codebase for inspiration.
It's C++ though and pretty involved so was only a very cursory look to
get some ideas.

After most of my work was done I found Vex, a Java open source project
(vex.sourceforge.net). Looking at their source they use some of the
same basic ideas but they still have some way to go with some of the
more complex aspects of layout and line breaking. Not a bad place to
start though if you want to see an approach without too much clutter.

Most people seem to go with an approach that involves three basic types
of object: block, line and line item. Blocks represent things like
paragraphs, which in an XML document can be nested (eg. nested divs
translate to nested blocks). A line item might be a tag or a run of
text.

The challenges are the simple (heh) typograph stuff of line breaking
and caret management, and deciding how to efficiently reflect changes
on the underlying document in the view.

If you really need on the fly XSLT transformation rather than a
CSS-like approach then that adds another layer of complexity and I'm
not sure how you'd do that using the .NET XSL functionality.

Regards, Alfie.

Nick wrote:
Thanks for the reply Mihai. I understand the differences between XML and HTML and that I'll have to use XSL. There are some products out there that do what I want (www.xopus.com and www.xeditnet.com to a lesser extent), but we want to develop one of our own.

Thanks again.

Nick


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lb | last post by:
Hi I'm looking for a wysiwyg XSTL editor, that actually is wysiwyg. So far every product I have tried out seems to have the idea that wysiwyg is just showing the result of an XML - XSL...
0
by: Ellen Quaadgras | last post by:
Hi, We are have built an in-house content management system and are looking for a good WYSIWYG browser-based editor to use with it. Cost can be anywhere from free to $2000. Qualities we're...
3
by: Mel Smith | last post by:
HI Friends, I'm a newbie at html writing but am a computer programmer and use a great editor (The Semware Editor - TSE) for all my coding -- even building my own first web pages. I'd like...
5
by: Arsalan | last post by:
How do they make WYSIWYG editor in the browser ? I've seen couple of website using them, but how do they make a WYSIWYG editor in the browser ?
12
by: Michael Peters | last post by:
für einen Enduser, der kein HTML kann und nur die Contents auf statischen Seiten ändern will, brauche ich einen einfach zu bedienenden WYSIWYG-Editor. Wäre dankbar für Empfehlungen! -m
4
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. >strong<...
1
by: .::alex::. | last post by:
Hello, I tried to find a complete powerfull .NET wysiwyg html editor as the editor from www.pintexx.com. There is a version for windows applications but it is a kind of fake because it is web...
5
by: DaveC | last post by:
I need some sage advice. For years I have been using a HTML editor (HomeSite 3) to produce crude web sites, mostly travelogs with text and a few clickable thumbnails leading to larger images. ...
9
by: TristaSD | last post by:
Hi, Does anyone know where I can get a decent WYSIWYG text area editor to use on one of my sites? The goal is to accomodate users who know zero html and to insert blog-like enties into the...
27
by: prt7u | last post by:
Howdy, I've started back afte a very long time of working with web pages for an organization that I am affiliated with (personally not professionally). Seeing that technology has advanced a lot...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.