473,748 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WYSIWYG XML Editor

Hi Folks.
I would like to find a control or code for use with an app I am
writing. We need to load a XML document. This XML document has a DTD
and we want to allow a user to edit the plain text in the editor. Then
the changes should be saved back to the xml file.

The idea is very much akin to the HTML Editors which use WYSIWIG.
However, we need to be able to extend the functionality of these
editors to support functionality that we will be building like
highlights. I've seen a few controls that can do this but they are
either for HTML or for java. We need it for XML and for C#/.Net.

Thanks.
Sushant Bhatia

Nov 16 '05 #1
6 7751
<su************ @gmail.com> wrote:
I would like to find a control or code for use with an app I am
writing. We need to load a XML document. This XML document has a DTD
and we want to allow a user to edit the plain text in the editor. Then
the changes should be saved back to the xml file.

The idea is very much akin to the HTML Editors which use WYSIWIG.
However, we need to be able to extend the functionality of these
editors to support functionality that we will be building like
highlights. I've seen a few controls that can do this but they are
either for HTML or for java. We need it for XML and for C#/.Net.


HTML is a presentation-based language, so WYSIWYG makes sense there (to
some extent, anyway). It doesn't make sense in XML, because there's
often no presentation in the first place. What does an application
configuration "look" like beyond it just being the XML, for instance?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
altova makes a commercial product that allows a user to edit data defined by
a DTD or Schema.

Microsoft's entry, Infopath, is part of Office 2003.

(Personally, I like Infopath better).

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<su************ @gmail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi Folks.
I would like to find a control or code for use with an app I am
writing. We need to load a XML document. This XML document has a DTD
and we want to allow a user to edit the plain text in the editor. Then
the changes should be saved back to the xml file.

The idea is very much akin to the HTML Editors which use WYSIWIG.
However, we need to be able to extend the functionality of these
editors to support functionality that we will be building like
highlights. I've seen a few controls that can do this but they are
either for HTML or for java. We need it for XML and for C#/.Net.

Thanks.
Sushant Bhatia

Nov 16 '05 #3
Hi Nick,
Thanks for the feedback. I looked at the Demo for InfoPath and it
seems like its used for Forms. We need the editor to be much like the
demo provided here :-
http://msdn.microsoft.com/library/de...xmldocedit.asp

The idea being, that a user can for instance, scan a document, get the
generated text from the OCR (which will be an XML file) and edit that
using an editor.

Therefore, there might be a CSS style sheet etc for that. From my
knowledge MSXML is used for applications like that.

However, I am told that MSXML is quite a difficult tool to master so
thats why we were hunting for components.

As far as Altova goes, they have XMLSpy which is already a GUI based
product. We need a control or the code for something like that.

Jon - I hope this answers your question as to why we are using XML. The
link i put in there is an example of that.

Thanks Nick and Jon for your replies. Hope to hear more for you two.
Sushant Bhatia

Nov 16 '05 #4
Hello Sushant,

I download and ran that little app
Let me understand your requirement a little better:

a) the documents that they are scanning, and running through OCR, are
printed XML documents? Or are you taking freetext output from OCR and
running it through a program to create XML?
b) The user who is editing the text is non-technical and we don't want them
to (1) deal with xml tags, and (2) screw up the XML structure, right?
c) The user should be able to see the results of their editing in a WYSIWYG
environment but they cannot change the structure or layout (unlike the demo,
which runs in IE and doesn't enforce either structure or layout). Is that
correct?
d) When the user is done, the user should have the ability to "submit"
somehow, and the item saved is a valid XML file.
e) You mention a DTD. Is a Schema available? Would it be OK if you created
a schema from the DTD?
f) The person editing the text can be training on simple editing
capabilities, but you don't want them changing the formatting, right?
g) The goal of the WYSIWYG is to allow the user to "see" how their text
will look in the layout so that they can change it as needed. Correct?

Am I on the same page?
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<su************ @gmail.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
Hi Nick,
Thanks for the feedback. I looked at the Demo for InfoPath and it
seems like its used for Forms. We need the editor to be much like the
demo provided here :-
http://msdn.microsoft.com/library/de...xmldocedit.asp

The idea being, that a user can for instance, scan a document, get the
generated text from the OCR (which will be an XML file) and edit that
using an editor.

Therefore, there might be a CSS style sheet etc for that. From my
knowledge MSXML is used for applications like that.

However, I am told that MSXML is quite a difficult tool to master so
thats why we were hunting for components.

As far as Altova goes, they have XMLSpy which is already a GUI based
product. We need a control or the code for something like that.

Jon - I hope this answers your question as to why we are using XML. The
link i put in there is an example of that.

Thanks Nick and Jon for your replies. Hope to hear more for you two.
Sushant Bhatia

Nov 16 '05 #5
Hi Nick.
To answer your questions:

a) The text that is scanned in can be anything, letters, books,
magazines. The result from the OCR software is an XML file.

b) Correct. The user is non technical.

c) I'm not sure what you mean by this. They should be able to change
the layout. The structure is defined in the DTD.

d) Correct. The user saves the document and it saves it as a XML file
again.

e) I guess its ok to create a schema from the DTD.

f) By formatting if you mean indentation etc then yes, they should be
able to change it.

g) Yes they should be able to see the text. In fact they should not
even know that they are editing "xml" ideally. They should think they
are using something like Word.

The idea is to have an "editor" like word that uses XML files instead
of Doc files.

Hope this helps. Thanks again Nick.
Sushant
Nick Malik [Microsoft] wrote:
Hello Sushant,

I download and ran that little app
Let me understand your requirement a little better:

a) the documents that they are scanning, and running through OCR, are printed XML documents? Or are you taking freetext output from OCR and running it through a program to create XML?
b) The user who is editing the text is non-technical and we don't want them to (1) deal with xml tags, and (2) screw up the XML structure, right?
c) The user should be able to see the results of their editing in a WYSIWYG environment but they cannot change the structure or layout (unlike the demo, which runs in IE and doesn't enforce either structure or layout). Is that correct?
d) When the user is done, the user should have the ability to "submit" somehow, and the item saved is a valid XML file.
e) You mention a DTD. Is a Schema available? Would it be OK if you created a schema from the DTD?
f) The person editing the text can be training on simple editing
capabilities, but you don't want them changing the formatting, right?
g) The goal of the WYSIWYG is to allow the user to "see" how their text will look in the layout so that they can change it as needed. Correct?
Am I on the same page?
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<su************ @gmail.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
Hi Nick,
Thanks for the feedback. I looked at the Demo for InfoPath and it
seems like its used for Forms. We need the editor to be much like the demo provided here :-
http://msdn.microsoft.com/library/de...xmldocedit.asp
The idea being, that a user can for instance, scan a document, get the generated text from the OCR (which will be an XML file) and edit that using an editor.

Therefore, there might be a CSS style sheet etc for that. From my
knowledge MSXML is used for applications like that.

However, I am told that MSXML is quite a difficult tool to master so thats why we were hunting for components.

As far as Altova goes, they have XMLSpy which is already a GUI based product. We need a control or the code for something like that.

Jon - I hope this answers your question as to why we are using XML. The link i put in there is an example of that.

Thanks Nick and Jon for your replies. Hope to hear more for you two. Sushant Bhatia


Nov 16 '05 #6
Hello Shushant,

Interesting that the OCR software produces XML output. I hadn't heard that
one before. Can you post a sample of the resulting text after OCR? I'm
very curious about what tags the OCR software is putting in to freetext. I
assume it is a set of formatting markup tags, not data tags.

Is the DTD defined by the maker of the OCR software? Or did you define
something specific for your needs?

You may be best off looking at Altova again, not at XML Spy, but at
Stylevision. I don't know of any controls that help with editing text like
this. You may want to consider taking the XML text, running it through a
stylesheet to get HTML text, and simply allowing the user to edit in HTML
using some of the existing controls available on the market.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<su************ @gmail.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
Hi Nick.
To answer your questions:

a) The text that is scanned in can be anything, letters, books,
magazines. The result from the OCR software is an XML file.

b) Correct. The user is non technical.

c) I'm not sure what you mean by this. They should be able to change
the layout. The structure is defined in the DTD.

d) Correct. The user saves the document and it saves it as a XML file
again.

e) I guess its ok to create a schema from the DTD.

f) By formatting if you mean indentation etc then yes, they should be
able to change it.

g) Yes they should be able to see the text. In fact they should not
even know that they are editing "xml" ideally. They should think they
are using something like Word.

The idea is to have an "editor" like word that uses XML files instead
of Doc files.

Hope this helps. Thanks again Nick.
Sushant
Nick Malik [Microsoft] wrote:
Hello Sushant,

I download and ran that little app
Let me understand your requirement a little better:

a) the documents that they are scanning, and running through OCR, are

printed XML documents? Or are you taking freetext output from OCR

and
running it through a program to create XML?
b) The user who is editing the text is non-technical and we don't

want them
to (1) deal with xml tags, and (2) screw up the XML structure, right?
c) The user should be able to see the results of their editing in a

WYSIWYG
environment but they cannot change the structure or layout (unlike

the demo,
which runs in IE and doesn't enforce either structure or layout). Is

that
correct?
d) When the user is done, the user should have the ability to

"submit"
somehow, and the item saved is a valid XML file.
e) You mention a DTD. Is a Schema available? Would it be OK if you

created
a schema from the DTD?
f) The person editing the text can be training on simple editing
capabilities, but you don't want them changing the formatting, right?
g) The goal of the WYSIWYG is to allow the user to "see" how their

text
will look in the layout so that they can change it as needed.

Correct?

Am I on the same page?
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<su************ @gmail.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
> Hi Nick,
> Thanks for the feedback. I looked at the Demo for InfoPath and it
> seems like its used for Forms. We need the editor to be much like the > demo provided here :-
> http://msdn.microsoft.com/library/de...xmldocedit.asp >
> The idea being, that a user can for instance, scan a document, get the > generated text from the OCR (which will be an XML file) and edit that > using an editor.
>
> Therefore, there might be a CSS style sheet etc for that. From my
> knowledge MSXML is used for applications like that.
>
> However, I am told that MSXML is quite a difficult tool to master so > thats why we were hunting for components.
>
> As far as Altova goes, they have XMLSpy which is already a GUI based > product. We need a control or the code for something like that.
>
> Jon - I hope this answers your question as to why we are using XML. The > link i put in there is an example of that.
>
> Thanks Nick and Jon for your replies. Hope to hear more for you two. > Sushant Bhatia
>

Nov 16 '05 #7

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

Similar topics

6
2013
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 trans-formation. What I'm looking for is an editor that lets me design how I want the result to look, based on a XML file, and automatically generates the XSL needed to obtain the result. Does such a product exist?
0
2794
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 looking for (in order of importance) - Solid product – well used, well debugged - Can work with relatively complex HTML
3
2237
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 your recommendation for a good wysiwyg HTML editor please. (either free or commercial). I want to build 'quick' web pages with a wysiwyg editor, then 'fine-tune'
5
1594
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
2372
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
3032
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. &gt;strong&lt; instead of <strong> and so on. Is this a problem with the editor or something else? Does .Net convert it? I had to disable page validate request because of the tags, is there more? Thanks,
1
2654
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 based at the root. I search a kind of DHTML editor control ... totaly dedicated to windows applications (.NET). Somebody knows if it exists somewhere? Thank you in advance,
5
2333
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. When I get going I usually produce a marginally navigable mess with sub pages and sub-sub pages. Check http://www.davearoundtheworld.org/s_chile/index.html as an example. These crude pages take me a lot of time. I would like to improve my web...
9
3155
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 database already formatted with html tags. Just thought I'd try this first before I go into WordPress and try to tear out their editor :)
27
3828
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 since the last time I authored web pages (using vi), I am looking for a good, "free" WYSIWYG HTML Editor. Now, before ya go and hit the reply key, I've already tinkered with "amaya" which was pretty cool and then I moved to "Nvu", which I like
0
8994
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9555
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8247
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4878
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.