Note that there are some explanatory texts on larger screens.

plurals
  1. POReading and modifying an HTML file in Java
    primarykey
    data
    text
    <p>I have one HTML file and what I have to do is to store this file into some array or big string and then do the required modifications. I have to include some Javascripts and some other elements with attributes and also have to eliminate some of them. Can anyone plaese help me out in doing this. Thanking you!</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;eXe&lt;/title&gt; &lt;style type="text/css"&gt; @import url(base.css); @import url(content.css); &lt;/style&gt; &lt;script type="text/javascript" src="common.js"&gt;&lt;/script&gt; &lt;!--HERE I NEED TO INCLUDE 3 MORE JAVASCRIPTS--&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="outer"&gt; &lt;div id="main"&gt; &lt;div id="nodeDecoration"&gt; &lt;p id="nodeTitle"&gt; Part 1&lt;/p&gt; &lt;/div&gt; &lt;div class="TrueFalseIdevice" id="id12"&gt; &lt;script type="text/javascript" src="common.js"&gt;&lt;/script&gt; &lt;!--THIS JAVASCRIPT HAS TO BE ELIMINATED--&gt; &lt;script type="text/javascript" src="libot_drag.js"&gt;&lt;/script&gt; &lt;div class="iDevice emphasis1"&gt; &lt;img alt="" class="iDevice_icon" src="icon_question.gif" /&gt; &lt;span class="iDeviceTitle"&gt;True-False Question&lt;/span&gt;&lt;br/&gt; &lt;div class="iDevice_inner"&gt; &lt;div id="ta12_16" class="block" style="display:block"&gt; &lt;/div&gt;&lt;div class="question"&gt; &lt;br/&gt;&lt;br/&gt;&lt;div id="taquestion0b12" class="block" style="display:block"&gt;1&gt;&lt;span style="color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline ! important; float: none"&gt; SQL Stands for Structure Query Language?&lt;/span&gt; &lt;!--THIS ONCLICK EVENT HAS TO BE REMOVED--&gt; &lt;/div&gt;&lt;br/&gt;True &lt;input type="radio" name="option0b12" id="true0b12" onclick="getFeedback(0,2,'0b12','truefalse')"/&gt; False &lt;input type="radio" name="option0b12" id="false0b12" onclick="getFeedback(1,2,'0b12','truefalse')"/&gt; &lt;div id="s0b0b12" style="color: rgb(0, 51, 204);display: none;" even_steven="18"&gt;Correct! &lt;/div&gt; &lt;div id="s1b0b12" style="color: rgb(0, 51, 204);display: none;" even_steven="19"&gt;Incorrect! &lt;/div&gt; &lt;div id="sfbk0b12" style="color: rgb(0, 51, 204);display: none;"&gt;&lt;div id="tafeedback0b12" class="block" style="display:block"&gt; &lt;!--HERE I NEED TO INCLUDE A SUBMIT BUTTON--&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt;&lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    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