parsing XML with HTML content without CDATA section using java xml parsers
<p>The xml files I need to parse have HTML tags inside the nodes, but there are no CDATA sections existing for the HTML content.  Is there there a way for parsing the xml file that gives the text along with html tags using java xml parsers.  And I should not edit the xml files.</p>

<p>Following is the XML file I am trying to parse using java xml parsers:</p>

<pre><code>&lt;assessmentItem xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p0 imsqti_v2p0.xsd" identifier="choice" adaptive="false" timeDependent="false" title="200007" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier"&gt;
        &lt;correctResponse&gt;
             &lt;value&gt;C&lt;/value&gt;
        &lt;/correctResponse&gt;
    &lt;/responseDeclaration&gt;
    &lt;outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer"
        &lt;defaultValue&gt;
            &lt;value&gt;0&lt;/value&gt;
        &lt;/defaultValue&gt;
    &lt;/outcomeDeclaration&gt;
    &lt;stylesheet href="stylesheet/scip.css" type="text/css" /&gt;
    &lt;itemBody&gt;
        &lt;span class="class1"&gt;
            &lt;b&gt;The graph shows how many children named different animals as favorite pets.&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;
        &lt;/span&gt;
        &lt;div class="class2"&gt;
            &lt;span class="class1"&gt;
                &lt;b&gt;&lt;img src="images/15063.jpg" alt="" /&gt;&lt;/b&gt;
            &lt;/span&gt;
        &lt;/div&gt;
        &lt;span class="class1"&gt;
            &lt;b&gt;How many children liked dogs or cats as their favorite pets?&lt;/b&gt;
        &lt;/span&gt;
        &lt;choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1"&gt;
            &lt;simpleChoice identifier="A"&gt;
                &lt;span class="class1"&gt;30&lt;/span&gt;
                &lt;rubricBlock&gt;
                    &lt;span class="class1" &gt;Chose the number of cats&lt;/span&gt;
                &lt;/rubricBlock&gt;
            &lt;/simpleChoice&gt;
            &lt;simpleChoice identifier="B"&gt;
                &lt;span class="class1"&gt;40&lt;/span&gt;
                &lt;rubricBlock&gt;
                    &lt;span class="class1" &gt;Chose the number of dogs&lt;/span&gt;
                &lt;/rubricBlock&gt;
            &lt;/simpleChoice&gt;
            &lt;simpleChoice identifier="C"&gt;
                &lt;span class="class1"&gt;70&lt;/span&gt;
                &lt;rubricBlock&gt;
                    &lt;span class="class1" &gt;&lt;b&gt;Correct&lt;/b&gt;&lt;/span&gt;
                &lt;/rubricBlock&gt;
            &lt;/simpleChoice&gt;
            &lt;simpleChoice identifier="D"&gt;
                &lt;span class="class1"&gt;150&lt;/span&gt;
                &lt;rubricBlock&gt;
                    &lt;span class="class1" &gt;Chose the sum of all the pets in the table&lt;/span&gt;
                &lt;/rubricBlock&gt;
            &lt;/simpleChoice&gt;
        &lt;/choiceInteraction&gt;
    &lt;/itemBody&gt;
    &lt;responseProcessing template="http://www.imsglobal.org/question/qti_v2p0/rptemplates/match_correct" /&gt;
&lt;/assessmentItem&gt;
</code></pre>
