Connecting Tech Pros Worldwide Forums | Help | Site Map

XML inside textarea

Newbie
 
Join Date: Jun 2006
Posts: 1
#1: Jun 19 '06
Hi all,

I'm fairly new to web development so bare with me.

The html page that i've created isn't working and i can't figure out why. I'm guessing there are some rules that need to be followed when putting xml between the <textarea></textarea> tags. The textarea and the submit buttons are located inside <form> tags. When a button is pressed it calls a jsp page to do the processing needed. For some xml content it works nicely....for others i cant get to that jsp that handles processing. No errors are being generated so its making it difficult for me to catch. Here is the html generated (minus the xml):

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>DB Editor</title>
  4. <link REL="stylesheet" Type="text/css" HREF="dbeditor_style.css">
  5. </head>
  6. <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  7. <table bgcolor="#FFFFFF" width="100%" border="0" cellspacing="0" cellpadding="0">
  8.     <tr><td valign="top">
  9. <!--Top Application Header-->
  10. <table bgcolor="#2A1F55" width="100%" border="0" cellspacing="0" cellpadding="0">
  11.         <tr>
  12.             <td class="application">&nbsp;&nbsp;DB EDITOR</td>
  13.  
  14.             <td align="right"><a href="http://www.idsk.com" target="_blank"><img src="http://bytes.com/images/g_poweredby3.gif" width="145" height="26" alt="Powered By InfoDesk" border="0"></a><img src="http://bytes.com/images/g_graphic1.gif" width="96" height="34" alt="" border="0"></td>
  15.         </tr>
  16.     </table>
  17.     <table bgcolor="#D5D3DE" width="100%" border="0" cellspacing="0" cellpadding="0">
  18.         <tr>
  19.             <td><a href="index.jsp"><img src="http://bytes.com/images/b_logout.gif" width="60" height="21" alt="" border="0"></a></td>
  20.             <td align="right" width="100%"><img src="http://bytes.com/images/g_graphic2.gif" width="96" height="21" alt="" border="0"></td>
  21.         </tr>
  22.     </table>
  23.  
  24.     <table bgcolor="#2A1F55" width="100%" border="0" cellspacing="0" cellpadding="0">
  25.         <tr>
  26.             <td colspan="2"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  27.         </tr>    
  28.     </table>
  29.  
  30.  
  31. <!--End of Top Application Header-->
  32. <!--Content Area-->
  33. <table border="0" cellspacing="0" cellpadding="0" align="center" valign="top">
  34. <tr><td valign="top" width="600">
  35. <table width="600" border="0" cellspacing="0" cellpadding="0" align="left">
  36.     <form action="db3_action.jsp">
  37.  
  38.     <tr>    
  39.         <td colspan="2" height="30"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  40.     </tr>
  41.     <tr>    
  42.         <td class="sectionhead">Edit Field</td>
  43.         <td align="right"><input type="submit" name=update value="Update" height="16" width="34"><input type="submit" name=cancel value="Cancel" height="16" width="34"></td>
  44.     </tr>
  45.     <tr><td class="rule1" colspan="2" height="1"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  46.     </tr>
  47.  
  48.     <tr><td colspan="2" height="10"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  49.     </tr>
  50.  
  51.         <tr><td width="125" valign="top"><b>story</b></td><td valign="top"><textarea name="xx" rows="30" cols="40" class="input350"></textarea></td></tr>
  52.         <!--<tr><td width="125" valign="top"><b>[field name2]</b></td><td valign="top"><input name="newsid" class="input200" size="25" maxlength="255"></td></tr>-->
  53.     </table>
  54.         </td>
  55.     </tr>
  56.     <tr><td colspan="2" height="20"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  57.     </tr>    
  58.     <tr><td class="rule1" colspan="2" height="1"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  59.  
  60.     </tr>
  61.     <tr><td colspan="2" height="5"><img src="http://bytes.com/images/blank.gif" width="1" height="1" border="0"></td>
  62.     </tr>    
  63.     <tr><td colspan="2" align="right"><input type="submit" name=update value="Update" height="16" width="34"><input type="submit" name=cancel value="Cancel" height="16" width="34"></td>
  64.     </tr>
  65.     </form>
  66. </table>
  67. </td></tr>
  68. </table>
  69. <!--End of Content Area-->
  70. </td></tr>    
  71. </table>
Sorry I couldnt include the xml portion. Not sure how much i can post online without getting in trouble. Any ideas?

Lawrence

Reply