Thanks, and sorry for being stupid - I searched and searched but somehow
didn't see "editPITarget" - must be my age or something...

Regards,
 
Kevin Flynn
Birdstep Technology ASA
Oslo, Norway
+47 93433942
-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Friday, January 28, 2005 10:01 AM
To: Kevin Flynn
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] inserting processing instructions

Kevin Flynn wrote:
> Is it possible to control the name of a processing instruction inserted 
> with XXE's insertNode function? When I insert a PI in this way, it has 
> the name 'target'. I don't know whether this is a program default or 
> something I have inadvertently specified. Either way, I'd like to be 
> able to determine the name myself if possible.

All PIs created in XXE systematically have string 'target' as their 
target. This string is intended to be a placeholder.

Immediately after using insertNode, you need to use command editPITarget 
(http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s18.html) 
to replace placeholder 'target' by the actual target of the newly 
created PI.

Of course, I agree that insertNode 
(http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s28.html) 
could be enhanced to allow to directly specify the target of the newly 
created PI.


Reply via email to