Ignore processing instructions

Hi there, 

I'm a faithfull user of Tidy to XMLize near XML files. 

Recently I came accross the following problem: my near-XML file contains 
unexpected processing instructions. They should not be there and are not 
intended to modify Tidy's behaviour. Unfortunately, they do. 

At some point, my near-XML file contains the following:  

<econtext><?idd:break> blah blah... </econtext>

Tidy replaces this with 

<econtext></econtext> 

and the whole file is gracefully ended with all necessary closing tags, 
ignoring the full bulk of interesting data below this point. 

Ideally, this processing instruction ( <?idd:break> ) would be ignored or 
even suppressed. I don't need it at all. 

Can a new option be created ? I can envision something like heed-procins : 
Yes/No/Suppress

Another option would be to escape whatever coding is contained in some 
pre-declared elements. Here  any coding in the <econtext> element can be 
escaped. 

The corresponding option to pre-declare such elements could be : 
escape-content-elements : econtext  elem2 elem3 

Thank you for considering, 

Cordialement / Best regards


Christophe Chenon, PhD


Innovation ? Terminology ? Quality


French Translation Services Center




+33-1-4941-7283
1,  Place  Jean-Baptiste  Clément


christophe.chenon@fr.ibm.com
 Noisy-le-grand ? 93881 ? France
 

French   Translation   Services   Center


IBM Corporate Multilingual Terminology




Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
Compagnie IBM France
Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 653.242.306,20 ?
SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A 

Received on Wednesday, 6 November 2013 10:52:52 UTC