PB

I have to parse a pseudo html code that contain for exemple :

<table>
  <wok-list name="List" size="5" class="wchat.Message">
  <tr>
    <th>color</th>
    <th>date</th>
  </tr>
    ...


and i just want tidy close the unclosed tags but it change the order or drop
some of my new tag

<wok-list name="List" size="5" class="wchat.Message">
    <table>
      <tr>
        <th>color</th>
        <th>date</th>
      </tr>
    ...

<select name="UnnamedSelect" size="5">
    <wok-list name="UnnamedList" class="cookieservice.Cookie">
    <option selected><wok-member>host</wok-member></option>
    </wok-list>
  </select>

transforme to

<select name="UnnamedSelect" size="5">
    <option selected>
    </option>
</select>

i use the external cfg file

//Tidy configuration file

// pas de tag "genere par tidy"
tidy-mark: no

quiet: yes

show-warnings: yes

markup: yes
// indentation
tab-size: 2
indent: yes
indent-spaces: 2

// Vire le doctype
doctype:omit
//Add wok tag
new-inline-tags: wok-text, wok-member
new-blocklevel-tags: wok-list, wok-member


Could you help me ???

Received on Tuesday, 10 September 2002 15:13:23 UTC