Ronald Hayden wrote:
> 
> This is probably a FAQ but I couldn't find anything on it:

No this is not a FAQ because I don't think that XXE is often used to
edit documents which are not constrained by a grammar.



> Is there a way to insert elements into a document when there is no DTD
> present?  I'd like to edit an arbitrary well-formed document, but the
> insert commands appear to be no-ops when there is no DTD.

Last time I used XXE to edit a document non-constrained by a grammar, I
found it terribly unfriendly for the following reasons:

* The Insert/Replace dialog or Edit tool does not automatically select
Wildcard=* which is needed to let you enter an arbitrary element name.
(<-- This is the answer to your question: use combobox Wildcard and
manually select * before entering an element name.)

* The Attributes tool does not automatically select Matched by
wildcard=* which is needed to let you enter an arbitrary attribute name.

* The Convert command is not really usable.

* Element and attribute names already present in the instance could be
remembered and made available in pick lists.

* A newly inserted element is always created empty.

Some of the above deficiencies should not be too difficult to fix and
therefore we'll try to fix them in next release.

Reply via email to