Note that there are some explanatory texts on larger screens.

plurals
  1. PORemoving HTML tags from CDATA in TestLink XML file
    primarykey
    data
    text
    <p>I have extracted an XML file (using Export Test Suite functionality) in TestLink. The issue I am facing is that most of the summary and steps tags have been given as HTML code, embedded in CDATA. </p> <p>As such this is not an issue, but I need to convert this file into an EXCEL sheet for importing into Visual Studio Test Manager. When I try to convert it, it does not come in the proper fashion and also, the data still has those HTML tags enclosing it, making it difficult to read.</p> <p>My question is: Is there any simple way to remove those CDATA and HTML tags from the XML file? I tried converting it to Canonical form, but that only removes the CDATA string and not the actual HTML tags from the files. Thus, making it more difficult for me to export them to EXCEL.</p> <p>SAMPLE INPUT:</p> <pre><code> &lt;expectedresults&gt;&lt;![CDATA[ 1. &lt;span style="font-size: 10pt; color: black; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;font face="Arial"&gt;Sample Text Which I want to Keep&lt;/font&gt;&lt;/span&gt; 2. Sample Text Which I want to Keep 3. &lt;font face="Arial"&gt;&lt;span style="font-size: 10pt; color: black; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Sample Text Which I want to Keep&lt;/span&gt; 4. &lt;span style="font-size: 10pt; color: black; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Sample Text Which I want to Keep&lt;/span&gt; ]]&gt; &lt;/expectedresults&gt; </code></pre> <p>SAMPLE OUTPUT:</p> <pre><code> &lt;expectedresults&gt; 1. Sample Text Which I want to Keep 2. Sample Text Which I want to Keep 3. Sample Text Which I want to Keep 4. Sample Text Which I want to Keep &lt;/expectedresults&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload