Thomas Bijon wrote:
> I try to make a macro command that would write a new complex node
> (containing a lot of descendent) at the end of XML datas.
>  
> I succeed doing it with successives "selectNode", "add" and "insert"
> command but the processing time is very long.
>  
> I would like doing it using the "paste" command after the last child of
> my root element and I would need that the "paste" command paste the
> plain text parameter as an XML node. But whatever the syntaxe I am
> using, the plain text parameter is always paste as a text child of my
> root element and not as an XML tree.
>  
> The syntaxes I tryed are :
>  
> command name="paste" parameter="after string <?xml
> version="1.0"?><ns:clipboard
> xmlns:ns="http://www.xmlmind.com/xmleditor/namespace/clipboard"><NOTICE....
>  
> command name="paste" parameter="after S <?xml
> version="1.0"?><ns:clipboard
> xmlns:ns="http://www.xmlmind.com/xmleditor/namespace/clipboard"><NOTICE....
>
> command name="paste" parameter="after S <?xml
> version="1.0"?&gtlt;NOTICE....
>  
> command name="paste" parameter="after string <?xml
> version="1.0"?&gtlt;NOTICE....
>  
> What is the correct syntaxe to do so ?

In the doc,
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/paste.html, "S"
means space and "string" is a placeholder.

Please use something looking like the example given in the doc.:
---
command="paste"
parameter="after <?xml version='1.0'?><p>A paragraph.</p>"
---

* If you specify "&lt;?xml version=&quot..." as the paramater of a
command referenced in a macro (contained in an XML file), you need to
*escape* "<", "&", etc, as "&lt;", "&amp;", etc.

* If you test command paste *interactively* using the "Tools|Execute
Command..." dialog box (Shortcut = Esc X), then you must not escape the
XML (otherwise it will be interpreted as plain text even if it is
well-formed).

* If  "&lt;?xml version=&quot..." is *not* *well-formed*, XXE will
always considers it as being plain text.




Reply via email to