I'm sorry for being vague. I thought it was clear
I see; actually, my document is divided in paragraphs that have the same structure. But in Word, every line of these paragraphs is also considered as a paragraph itself since there's a paragraph jump at the end of every line! That's why I thought it would be clearer if I used "block of text" to talk about the "big paragraphs".Start by describing EXACTLY what your requirements are. No vagueness. For example "block of text" is actually a meaningless phrase. The whole document is a "block of text". The second sentence of a fifteen sentence paragraph is a "block of text". The entire paragraph is a "block of text". Four paragraphs together is a "block of text".
Anyway, this is the kind of stuff I have to modify with my macro:
<identifiant>thaeyhdjehdfjč</identifiant>
<FichierSon>hsyhysrhsyhj</FichierSon>
<image>hqyhqyhsr</image>
<TitreImage>hshysyh</TitreImage>
<lieu>shysyhsrh</lieu>
<informateur>syhsyhsy</informateur>
<enqueteur>hysshsrh</enqueteur>
<decoupeur>hshysyhs</decoupeur>
<transcripteur>hyshysyhsd</transcripteur>
<relecteur>shysyshy</relecteur>
<machine>RFrgGtrqgt</machine>
<FichierSource>qgtshysrjhtdy</FichierSource>
<duree>hyshysdhshys</duree>
<DateEnreg>hysrjuukjiy</DateEnreg>
<questionnaire>hysjdutjj</questionnaire>
<QuestionPosee>judujedjdj</QuestionPosee>
<contexte>udjdjfjfu</contexte>
<BretonLocal>jdujufyk,ifk,i</BretonLocal>
<phon>djuk,iykfy,fhy</phon>
<BretonStandard>dyhsssrjedu</BretonStandard>
<TraducFr>judtjujud</TraducFr>
<TraducLitt>dujsjsusu</TraducLitt>
<DonneesMorpho>qyjqyjsqjs</DonneesMorpho>
<DonneesSynt>jsysjuu</DonnesSynt>
<nt>sujsujndu</nt>
<type>sjsujstuy</type>
<theme>jzstjuetdjudt</theme>
<MotsClesFr>jeutjedtjd</MotsClesFr>
<MotsClesLocal>jetujetrču</MotsClesLocal>
<MotsClesStand>ahryjhsfj</MotsClesStand>
<RefAutreExtr>jssuuzst</RefAutreExtr>
<commentairePerso>seujyzuu</commentairePerso>
<DateCreation>sjučus</DateCreation>
<DateMiseAJour>jshysujsujsu</DateMiseAJour>
<identifiant>ntuedkfyi</identifiant>
<FichierSon>kiyfkfyilkgfyk</FichierSon>
<image>kdikfyik;</image>
<TitreImage>skyjnstuxdnj,jst</TitreImage>
<lieu>usdjdtjdt</lieu>
<informateur>dukjduk</informateur>
<enqueteur>qsujsfhnjxf</enqueteur>
<decoupeur>justjdutk</decoupeur>
<transcripteur>sukujgxh</transcripteur>
<relecteur>usjstujd</relecteur>
<machine>ujsdtukjedut</machine>
<FichierSource>sujxtujs</FichierSource>
<duree>utkjkeduk</duree>
<DateEnreg>jdtujdtyu</DateEnreg>
<questionnaire>judtk,yif</questionnaire>
<QuestionPosee>juetjed</QuestionPosee>
<contexte>jetudtj</contexte>
<BretonLocal>ujedukjeyi</BretonLocal>
<phon>kjedyikk,</phon>
<BretonStandard>uj,dekiyt</BretonStandard>
<TraducFr>kiydi;ky,</TraducFr>
<TraducLitt>k,eydik,dy</TraducLitt>
<DonneesMorpho>kryikfl;kf</DonneesMorpho>
<DonneesSynt>ydi;r</DonnesSynt>
<nt>,eydi;k,kriy</nt>
<type>eikyi,;edy</type>
<theme>jzsujzsutj</theme>
<MotsClesFr>juedt,tug</MotsClesFr>
<MotsClesLocal>jtujdtj</MotsClesLocal>
<MotsClesStand>jsuysrju</MotsClesStand>
<RefAutreExtr>jtduj,djny,</RefAutreExtr>
<commentairePerso>jetjudetu</commentairePerso>
<DateCreation>juetdjdt</DateCreation>
<DateMiseAJour>jetujudj</DateMiseAJour>
etc with loads of paragraphs like that (always the same tags and structure, but differents things between the tags, here I've written random letters of course)
And I want to delete the lines or groups of lines that start with certain tags, so that I get this (here I wrote them with bold characters so that you see which ones I want to keep, but of course, since it's XML code, in the original document there'll be no bold characters):
<FichierSon>hsyhysrhsyhj</FichierSon>
<informateur>syhsyhsy</informateur>
<BretonLocal>jdujufyk,ifk,i</BretonLocal>
<phon>djuk,iykfy,fhy</phon>
<BretonStandard>dyhsssrjedu</BretonStandard>
<TraducFr>judtjujud</TraducFr>
<TraducLitt>dujsjsusu</TraducLitt>
<nt>sujsujndu</nt>
<FichierSon>kiyfkfyilkgfyk</FichierSon>
<informateur>dukjduk</informateur>
<BretonLocal>ujedukjeyi</BretonLocal>
<phon>kjedyikk,</phon>
<BretonStandard>uj,dekiyt</BretonStandard>
<TraducFr>kiydi;ky,</TraducFr>
<TraducLitt>k,eydik,dy</TraducLitt>
<nt>,eydi;k,kriy</nt>
I hope it helps...
Thanks a lot!