Thank you!  The template code from the docbook configuration will be very 
helpful.

I notice that this sample code also uses Element.setName() — but I guess in a 
safer way since it’s using it to create a new structure, not modify an existing 
one in place?

Boris



On Aug 19, 2014, at 3:32 AM, Hussein Shafie <[email protected]> wrote:

> 
> Our mistake.
> 
> Element.setName 
> (http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xml/doc/Element.html#setName(com.xmlmind.xml.name.Name))
>  is definitely not supported by the UndoManager.
> 
> This method has been added recently for use in very specific cases (e.g. when 
> the DOM of XXE is used *outside* XXE as a general purpose DOM similar to W3C 
> DOM or JDOM).
> 
> Therefore, this method should have been marked: "Not part of the public 
> documented API. Do not use.".
> 
> I'm afraid that this makes your command much harder to write.
> 
> I've attached to this email:
> 
> src/com/xmlmind/xmleditext/docbook/Promote.java
> 
> src/com/xmlmind/xmleditext/docbook/Demote.java
> 
> in the hope that this source code helps you.
> 
> 
> 
> 
> <Promote.java><Demote.java>


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to