Roberto Rosselli Del Turco wrote:
> 
> 1. is it possible to load an XML file with no validation?

Yes but the document must not reference a grammar constraining it
(<!DOCTYPE> for DTDs or xsi:schemaLocation and
xsi:noNamespaceSchemaLocation attributes on root element  for
XML-Schemas).

Note that XXE is not very nice to use without the guidance of a DTD or
XML-Schema.




> I have lots of files that are modules of a bigger project, and as such lack 
> any pointer
> to dtd, entities etc. XXE refuses to load them with messages like
> "entity not supported", is it possible to avoid this?

Not being able to load an entity (DTD or general entities) is a fatal
error. But XXE can be configured to automatically associate a DTD to a
document without a <!DOCTYPE> (there is a similar mechanism for
XML-Schemas).

For example, the bundled configurations allow to create and edit a
DTD-less DocBook <section> which is intended to be a module of a larger
DocBook document.

This is explained in the Power User's Guide. See
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s01s01.html





> 2. how hard is it to add a different dtd to XXE? 

It takes 5 minutes once you have taken the time to read the Power User's
Guide (available on-line
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/index.html but
also included in the distribution).

> is it enough to add it to catalog.xml?

No. See
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s01s01.html

Adding a DTD to XXE means in fact writing a *configuration for a
document type*:
* The easy part: adding the DTD.
* The not so easy part: writing a CSS style sheet for your document
type. (Using XXE without a style sheet is possible but not very
comfortable.)




> 3. how hard would it be to add an entity tab similar to the Characters
> one?

It is currently not possible to add a Tool tab to XXE (though it is a
good idea!) but what is a much deeper problem for you is that *XXE does
not manage entities at all*. See
http://www.xmlmind.com/xmleditor/features.html#nonfeatures

Note that it is possible to add a custom menu and/or a custom toolbar
which invokes custom commands.




> and, in general, to expand the program with plugins? (I'm thinking
> about NoteTab and its .clb files, if you know this program).

Customizing XXE by writing configuration is described in the Power
User's Guide.

Specializing XXE by writing Java[TM] code or scripts is described in the
Developer's Guide. Available online
http://www.xmlmind.com/xmleditor/_distrib/docs/dev/index.html and can be
freely downloaded from http://www.xmlmind.com/xmleditor/download.shtml
(example xxe-devdocs-21.zip). The Developer's Guide is not included in
the distribution.

Reply via email to