Need Double quotes instead of Single quotes in output XML version header

In XML output generated by XDODTEXE executable, its observed that header row looks like this:
<?xml version = '1.0' encoding = 'UTF-8'?>
It should look like this:
<?xml version="1.0" encoding="UTF-8"?>
Browsers like IE deceive. Opening the XML in Text editors show single quotes and spaces.
Data Template and XSL template files have proper headers with double quotes.
The output XML file is rejected by a Government Authority as parsing the header line fails.
Are there any ways to configure this?

I dont know if this has anything to do with my problem or not, but I thought I should add this:
When a user is filling out the form that has the textarea,  they put whatever text they want into the textarea field.
textarea name="text"></textarea
Then, they click on a 'Continue' button and the system shows them a preview of what they are about to have inserted
into the database.
Within the code on this preview page is a hidden field, which holds the contents of their textarea data so it can be
passed on through the process once the user verifies the preview.
This is done using this: input type="hidden" name="text" value="<cfoutput>#text#</cfoutput>"
Like I said, I don't know if that has anything to do with this problem, but thought it might be good to mention it
Kudos

Similar Messages

  • SQL Injection, replace single quote with two single quotes?

    Is replacing a single quote with two single quotes adequate
    for eliminating
    SQL injection attacks? This article (
    http://www.devguru.com/features/kb/kb100206.asp
    ) offers that advice, and it
    enabled me to allow users to search name fields in the
    database that contain
    single quotes.
    I was advised to use "Paramaterized SQL" in an earlier post,
    but I can't
    understand the concept behind that method, and whether it
    applies to
    queries, writes, or both.

    Then you can use both stored procedures and prepared
    statements.
    Both provide better protection than simply replacing
    apostrophes.
    Prepared statements are simple:
    Set myCommand = Server.CreateObject("ADODB.Command")
    ...snip...
    myCommand.CommandText = "INSERT INTO Users([Name], [Email])
    VALUES (?, ?)"
    ...snip...
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Name",200,1,50,Name)
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Email",200,1,50,Email)
    myCommand.Execute ,,128 'the ,,128 sets execution flags that
    tell ADO not to
    look for rows to be returned. This saves the expense of
    creating a
    recordset object you don't need.
    Stored procedures are executed in a similar manner. DW can
    help you with a
    stored procedure through the "Command (Stored Procedure)"
    server behavior.
    You can see a full example of a prepared statement by looking
    at DW's
    recordset code after you've created a recordset using version
    8.02.
    "Mike Z" <[email protected]> wrote in message
    news:eo5idq$3qr$[email protected]..
    >I should have repeated this, I am using VBScript in ASP,
    with an Access DB.
    >

  • How to replace double quotes with a single quote in a string ?

    Hi All:
    Can some one tell me how to replace double Quote (") in a string with a single quote (') ? I tried to use REPLACE function, but I couldn;t get it worked.
    My example is SELECT REPLACE('STN. "A"', '"', ''') FROM Dual --This one throws an error
    Thanks,
    Dima.

    Whether it is maybe not the more comfortable way, I like the quoting capabitlity from 10g :
    SQL> SELECT REPLACE('STN. "A"', '"', q'(')') FROM Dual;
    REPLACE(
    STN. 'A'{code}
    Nicoals.                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to handle single quote between two single quotes in ABAP?

    Dear SAP Gurus
    I have a question regarding handling a string data.
    Say I have a string  ABCD'\&%$!!ABC'AAA123.   Please notice that there are single quotes in my string.
    I am writing a parser code in ABAP and getting into problem with if statement to check if the character read is a single quote.
    When I type the following with a singleQuote between 2 singleQuoes as below, it gives error.
    If CHAR = '''.
    ENDIF.
    How do I handle that? I searched for escape sequence and couldn't get any useful info.
    Any feedback will be highly appreciated.
    Thanks
    Ram

    Or just use string literals
    if char = `'`.   "note that ` is the "backquotation" mark not a regular quotation mark '
    Regards
    Marcin

  • JComboBox in JTable to activate when double-click instead of single-click

    I like to know if it is possible to change the default behaviour of JComboBox within the JTable,
    such that instead of single click on the JTable cell for the combo box's popup to appear, I double click on it instead.
    If it is possible please give some advice.
    Thanks.

    I couldn't get to settings because I couldn't scroll and don't know where that is located. I just saw a similar question from someone else. Three clicks on home button worked to turn off voiceover !! Phew!

  • Making the Dock require Double-Click instead of Single

    Is there a way to make the Dock require a double-click instead of a single-click to open applications. It would be great if the single-click would still focus the desired application. The prevents users from accidentally opening potentially large programs.

    Sorry. I meant that if an application is already open the single-click should focus it (bring it to the front) which is the current behavior.
    It is two easy to open applications. I have IDE's on the dock that take a lot of resources to start and I find myself accidentally opening them when wanting to open Textedit or a terminal. A double-click would allow the user to correct after the first click thus not opening the wrong application.

  • Double click instead of single click

    recently like a month ago i started noticing when i ried to open a new tab in firefox or close,i opened two new tabs or close two tabs then i found out it wasn't firefox is that when i single click on something  i guess ny computer recognizes that as a double click and that's what it does,it double clicks on the icon,video or whatever i click on,can anyone tell me how to revert this to its default configuration,by the way i didn't mess with it or tried to change it or what ever,most of the times it double clicks on anything but not all the time

    @karantani: exactly as cfr said: it happens after some time and without any warning. If you're not sure just try another mouse. 5years is hell of a lot for a mouse if you use it on everyday basis for many hours. I even had this on new Logitech mouse just after couple of months (they're all doing just shit nowadays, I miss days of old heavy, robust keyboards and mouses, of electronics like Walkman - it was some nice engineering, everything was working just fine for many, many years. Right now your lucky if product will hold it's planned obsolescence). There is a lot you can do, I fix mine by sticking piece of paper to lift badly designed buttons, but in many cases switches just have enough.

  • How do I replace one ' (Single Quote) with '' (Two single Quote)

    Hi,
    I have been surfing around the forum, coudn't find the similiar case.
    I have been trying but fail. Below is my code:
    activity = request.getParameter("activity");
    activity = activity.replace("\'", "\'\'");
    Error Occur:
    Incompatible type for method. Can't convert java.lang.String to char. activity = activity.replace("\'", "\'");
    I'm trying to use replaceAll(), but seem like the method is not existed, we are using Version Java 1.3
    Pls advise.
    Regards
    Ying

    For JDK 1.3 or ealier, use this:
      public static String replaceSubstrings(String str, String sub, String rep){
        int s, p, q;
        int slen = sub.length();
        StringBuffer sb = new StringBuffer();
        s = 0;
        p = str.indexOf(sub);
        q = p + slen;
        while (p != -1){
          sb.append(str.substring(s, p));
          sb.append(rep);
          s = q;
          p = str.indexOf(sub, s);
          if (p != -1){
            q = p + slen;
        sb.append(str.substring(s));
        return sb.toString();
    activity = replaceSubstrings(activity, "'", "''");

  • Double redirect instead of single why?

    Hi everybody ,
    when one of my forms is posted in my web application it calls the same action twice ( using command pattern). so the command is 'send-to-update' this gets done and processing continues. After processing I forward to another jsp. This doesn't happen though for some reason i just end up back in the same action. Anybody got any ideas why or how to solve this?

    I did mean redirecting (forwarding) ciea the requestdispatcher.
    Anybody?

  • Replace single quote with two single quotes

    Hi all,
    I have a value = ABCD'S(>@!23. i want to replace the value as ABCD''S(>@!23.
    Thanks in advance

    What is your database version ? Q operator works from 10G onwards.
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 23 14:35:38 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> conn hr
    Enter password:
    Connected.
    SQL>  CREATE TABLE test_Q_operator(str VARCHAR2(30));
    Table created.
    SQL> INSERT INTO test_Q_operator VALUES('ABCD''S(>@!23');
    1 row created.
    SQL> INSERT INTO test_Q_operator VALUES('Saubhik''s test row');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT str,REPLACE(str,Q'[']',Q'['']') col2
      2  FROM test_Q_operator;
    STR
    COL2
    ABCD'S(>@!23
    ABCD''S(>@!23
    Saubhik's test row
    Saubhik''s test row
    SQL>Also check you SQL*PLUS client version.

  • Replacing " (double quote) with ' (single quote)

    Hi there,
    I have the following method to manipulate user input. All I want to do is, to replace the double quote with a single quote. The implementation I tried was,
    this.replace(desc, "\"", "'");
    This does not work for me. It jsut removes the double quote and does not introduces the single quote. Could any one please advise?
    Thanks,
    Des
    public static String replace(String line, String oldString, String newString) {
              if(line != null && oldString != null && newString != null) {
                   int index = 0;
                   while ((index = line.indexOf(oldString, index)) >= 0) {
                        line = line.substring(0, index) +
                             newString +
                             line.substring(index + oldString.length());
                        index += newString.length();
              return line;
         }

    Bad luck.. I am unable to get it still.
    This is the code I am using (implemetation is in a JSP. I am using this code to test it).
    public class Test{
    public static void main(String args[]){
         String s = args[0];
         Test t = new Test();
         String doubleQuote = "\"";
         System.out.println(" output :"+ t.replace(s,doubleQuote,"'"));
         //System.out.println(" output :"+ t.replace(s,"\"","'"));
         //System.out.println(" output :"+ t.replace('"', '\''));
    public static String replace(String line, String oldString, String newString) {
              if(line != null && oldString != null && newString != null) {
                   int index = 0;
                   while ((index = line.indexOf(oldString, index)) >= 0) {
                             System.out.println(" line count :");
                        line = line.substring(0, index) +
                             newString +
                             line.substring(index + oldString.length());
                        index += newString.length();
              return line;
    }mshn02
    The main problem is I am stuck with the server's version of Java (which I have no control on it). I could not use 1.4.2

  • Getting rid of single quotes and other bad characters

    Hello All-
    I am writing a servlet that takes a value from a form, and saves it to a database. However, when single quotes, and other illegal characters are entered, i get all sorts of errors. I am certain their is some function that would take care of all of this.
    Help!

    Hi there,
    When you try to insert single quotes into the database it gives an error or problem because a single quote is a reserved character in the database.
    If you want to store a single quote or any other character that is reserved in the database then you need to find out how to escape that reserved character.
    One option is to use the single quote twice, so instead of ' , use '' (not double quote but , type single quote twice).
    Another option is to use HTML entity code for single quote
    "Message was edited by:
    appy77

  • JSTL inside of single quotes

    Very strange occurrence here. I'm pretty sure it must be something to do with server set up, but here goes.
    I have the following code.
    <li><a href="" onClick="javascript:window.location='${pageContext.request.contextPath}/logOut.do';return false;">Logout</a></li></ul>This works just fine on my development environment (RAD 6.0) and in production. I'm going on a long Vacation and I was making sure another developer was able to support it while I'm gone. We got everything to work on his computer except he wasn't able to log out and wasn't able to do a few other things. I was under the impression we had identical environments, and I've check my project into source control and he checked it out, so all the same jars and libraries should exist.
    Turns out the problem is anytime there is EL inside a single quote (not counting single quotes inside JSTL tags), it isn't being recognized as EL. The source code is spitting out the ${...}
    the places that have el like <td>${data}</td> work just fine.
    My only guess would be something with the server settings.. but I don't know of anything that could cause this.
    Anyone have any ideas?

    well, we narrowed it down to a problem on his local 6.0 server. If he creates an ear file it deploys just fine to our test and QA environment.. so I would image the same would be true for Production. I can live with him not being able to double check that the logout functionality works on the off chance that he has to do any work on the app in the next 11 days.
    Just means I need to make sure he is at the top of the list on upgrading to Rad 7.0 and using a 6.1 server instead of 6.0, and I guess need to make sure he has the latest fix packs and such installed.

  • Single quot problem

    Hi friends
    Under given code is written in JSP page and passing userid in servlet
    document.form1.action="../servlets/myServelt?userid=abc'"Please check abouve line last character is double quout(") and second last character is single quot ( ' ).
    my problem is when i pass user id in servlet i got questation mark instead of single quot.
    I have to allow single quot in userid due to some reason. so i can't remove single quot.
    please help me how can i got single quot instead of questation mark ?
    Thanks
    virendra

    I don't think you are allowed to pass a single quote (apostrophe) over URLs. Web standards limit the characters that are allowed to be used to make room for protocol features.
    My guess is that you will need to URLEncode the string:
      <% String encodedGoTo = URLEncode("../servlets/myServelt?userid=abc'", "UTF-8"); %>
      document.form1.action="<%=encodedGoTo%>";

  • Column Template conditions foiled by a single quote

    I am using a generic column template and have a few pl/sql conditions to shade different rows like so:
    '#1'  like '%Total%'This worked fine until an employee's name appeared in the first column with a single quote in his last name (like O'Brien). Well apparently Apex literally takes whatever is in the field and just shoves it in between the single quotes because the single quote is terminating the string as if you were doing this in sql instead of making it a bind variable:
    'O'BRIEN' like '%Total%'Which results in this friendly message to the users:
    ORA-06550: line 1, column 65: PLS-00103: Encountered the symbol "BRIEN" when expecting one of the following: ) , * & | = - + < / > at in is mod remainder not rem => ..  <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ as between from using || multiset member SUBMULTISET_
         Error      ERR-1025 Error processing PLSQL expression. 'O'BRIEN, JOHN P ' like '%Total%' Can someone from the Apex team confirm that this is the issue? I know I could do a replace on the single quote in my sql, but can't figure out how to escape the '#1#' properly so I don't have to do a replace. I also don't really want to use the Carl Backstrom approach of having to code in a class into the sql when these templates work for 99% of what I need to do.
    Any ideas?

    Dude you rock! I tried about 6 different combos of the q function before I got frustrated and posted. I had too many quotes in mine I guess but that works perfectly.
    Thanks again!

Maybe you are looking for

  • DW CS4: How to play a Flash Movie in a NEW window after clicking a link or a button on a page?

    Hi, using Adobe Dreamweaver CS4, I would like to have a link or a button on a webpage that when clicked will play a Flash Movie in a new window. Using the 'Insert Panel' > Media: FLV I managed to insert the .flv file on the page, but the movie plays

  • ATI HDMI Audio Not Working

    Hi. I'm trying to get my ATI HDMI audio working. I've followed the instructions at https://wiki.archlinux.org/index.php/ATI#HDMI_Audio and running "aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav" outputs no errors nor any sound on my TV.

  • Create Service entry sheet based on % work completion

    Dear Experts Is it possible to enter the percentage for planned services, while creating service entry sheet.?? For example: My client requirement is like that, while creation service PO, there a planned service like 1 lot - 10,000RS. while creatiog

  • How to make background translucent in iOS 7?

    My wife has an iPhone 4s with iOS 7, and when she presses and holds the home button to invoke siri, the siri background is like a translucent blueish color.  My iPhone 4s siri screen is black with white text.  I've tried setting the home and lock scr

  • How to view all the patches installed in a WebLogic

    Hi All, Is there a way on how to view all the patches installed in a WebLogic Server particular the 10.3.1? Thanks, Ace