Jan Bares wrote: > this should be simple but I don't know how I can do it. I have this sample > document: > > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> > <article> > <title>article</title> > <section> > <title>section1</title> > <para>para1</para> > <para>para2</para> > <para></para> > </section> > </article> > > Now I want to insert new section between para1 and para2. There are two ways > how to insert the section. The new section can be inside the outer section1 > (as subsection) or the new section can follow after section1. I cannot do > any of the two simple operation without using multiple steps. Can you help > me?
You can automate almost anything you can do using multiple steps by writing a macro-command. See http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch02.html

