Re: RFE Find/Replace elements

Leif H Silli <[email protected]> Mon, 01 Aug 2022 15:32:35 +0200
Newsgroups gmane.editors.xxe.general
Organization Lenk.no/Silli
Message-ID <[email protected]>

Den 2022-08-01 11:16 skreiv Hussein Shafie:
> On 7/31/22 16:23, Leif H Silli wrote:

>> I tried using the Find/Replace Element function,  but it was 
>> impossible.
>> 
>> The general problem is that the Find/Replace ELement function does not 
>> permit me to create an invalid document
> 
> Yes, that's the whole point of the Find/Replace Element function. In
> some cases, may be you'll find more convenient to use Find/Replace
> (xml source code) in the "XML source" view.

Indeed.

>> … Hence I am not allowed to Find all <dl> and replace them with (text) 
>> - that is: with nothing. (Because then <dt> and <dd> would become 
>> children of <li>.)
>> 
>> But for some reason, I am allowed (if I use the Convert element 
>> function of the Edit menu) to do the same thing. Except that in that 
>> case, what happens is that both <dl>, <dt> and <dd> get removed PLUS 
>> that the text of <dd> is retained,
> 
> Yes.
> 
> 
>> whereas the text of <dt> is deleted.
> 
> No. I don't get this. In my test, see screenshots (before.png and
> after.png), the  the text of <dt> is retained too.

You are right. I made a fresh test and it indee works like that. (When I 
reported the error, I had a slightly complicated document, and probably 
got confused by the result, sorry.)

Leif Halvard Silli

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