473,397 Members | 1,950 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,397 software developers and data experts.

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 7716
<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.com>
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.googlegr oups.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*********************@g14g2000cwa.googlegro ups.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*********************@g14g2000cwa.googlegro ups.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*********************@z14g2000cwz.googlegro ups.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*********************@g14g2000cwa.googlegro ups.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
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. &gt;strong&lt;...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
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...
0
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...
0
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,...

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.