Actually, all I've done when I want to view or edit the source text is open
the xml document in another editor - like Cooktop or jEdit. I believe
XMLspy offers different views, and so I was just wondering if XXE did also.
But it looks like the answer is no.
Thanks to both of you for responding.
-JB
Hussein Shafie
<hussein at pixware.fr> To: Steven Noels
<stevenn at outerthought.org>, "JABakken at dstsystems.com"
Sent by: <JABakken at dstsystems.com>
hussein at saxo.pixware. cc: "xmleditor-support
at xmlmind.com" <xmleditor-support at xmlmind.com>
fr Subject: Re: [XXE] Viewing
the Source Text
05/15/2003 04:14 AM
Please respond to
"xmleditor-support at xm
lmind.com"
Steven Noels wrote:
>
> On 13/05/2003 15:44 JABakken at dstsystems.com wrote:
>
> > Is there any way within XXE to view and edit the actual source text?
> >
> > Thanks.
>
> Nope, and it won't happen soon since that's exactly what the authors
> want you to avoid.
True, there is no built-in way to do this (because it is not our job to
do this) but this can been done easily with an external text editor and
the following macro-command:
---
<command name="editXMLSource">
<macro>
<sequence>
<choice>
<sequence>
<command name="XXE.save" />
<command name="run" parameter='emacs "%DF"' />
</sequence>
<command name="run" parameter='emacs "%DF"' />
</choice>
<command name="XXE.open" parameter="%D" />
</sequence>
</macro>
</command>
<binding>
<keyPressed code="ESCAPE" />
<charTyped char="e" />
<command name="editXMLSource" />
</binding>
---
Adapt this macro to your environment by:
[1] Changing emacs to your favorite text editor. Make sure that this
editor supports Unix-style newlines and the encoding you have chosen for
your XML documents.
[2] Binding the command to a keystroke sequence that does not insert
characters in the document view (A Java bug causes Esc-e to insert 'e'
on Windows. This does not happen not on Linux.).
Read
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s02s02.html
to learn how to install generic custom bindings.