473,382 Members | 1,594 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,382 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 1762
> 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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.