Special characters in java, oracle and html

Hi,
I'm working on a mini content management system and need help with dealing with special characters.
The input are taken from html form which are then stored into a varchar column in oracle database.
When i retrieve the data, some of the special characters have been changed to ??? and also
fields with double quote are modified.
I believe there two issues;
1. dealing with special characters
2. display special characters back in html form textfield after retrieving.
e.g.
This is the line with "quote" saved to database
This is the line with "quote" retrieved from database
This is the line with displayed in html text field.
Any help will be much appreciated.
Thanks in advance.

Maybe you should try this couple of classes: java.net.URLDecoder and java.net.URLEncoder
Andres
Best

Similar Messages

  • Special characters in joins name and Identifiers

    I am working on a business area which was created a time ago. Joins name contain special characters. Regarding Oracle, these are not going to be accepted in the new versions.
    How can I fix this problem, knowing any change in joins name will affect the workbooks.

    You can - and should - double check this, but I believe changing the name only of the join will not cause a problem per se.
    It's when you change the name AND the identifier in one fell swoop that a problem will occur.
    That's because when Disco opens up a workbook, it will look for the name OR identifier (if, for example, the name was changed).
    So, in theory, you could change the name of a join, folder, etc. and then open all your Discoverer workbooks and then save them again. Now they will have knowledge of the new name.
    Then if you wanted - and ALL workbooks were already run and re-saved - you could change the identifier and do the whole process over again.
    So, to summarize, I believe that just changing the actual join name ONLY will not cause any problem.
    Russ

  • I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click

    I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click, stops the other software from running, and won't shut off, ever.

    Try trashing the .plist in Home/Library/Preferences which has CharacterPalette in its name.

  • Special characters in file names and directories

    I'm building a site that lets users create directories to
    which they give the name they want.
    Using PHP, is there one universal solution to avoid any
    special characters in directories, yet will
    display the directory/file names in html the way the user
    intended?
    example of a possible name:
    "ça alors: it's a déjà-vu"
    How can I encode this so it's valid as a directory name, yet
    can be displayed as intended when the
    name is output to the page. urlencode() does not do the job,
    neither does htmlentities()...
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

    (_seb_) wrote:
    > Gary White wrote:
    >> On Sun, 19 Nov 2006 19:15:04 +0100, "(_seb_)"
    <[email protected]> wrote:
    >>
    >>> "ça alors: it's a déjà-vu"
    >>>
    >>> How can I encode this so it's valid as a
    directory name, yet can be
    >>> displayed as intended when the name is output to
    the page.
    >>> urlencode() does not do the job, neither does
    htmlentities()...
    >>
    >>
    >> What's wrong with:
    >>
    >> $l="ça alors: it's a déjà-vu";
    >> print urlencode($l)."<br>\n";
    >> print htmlspecialchars($l);
    >>
    >> Gary
    >
    >
    > I know that, but what is the name of the directory? It
    has to be a real
    > directory name, not a string stored somewhere.
    >
    > What's a valid encoding for a directory named "ça
    alors: it's a
    > déjà-vu"? I can call a folder like this on my
    Mac, but it won't work on
    > any server...
    >
    >
    >
    PS: basically it's not a url encoding issue.
    I can url encode "ça alors: it's a déjà-vu",
    and pass it in a url query string. But my issue is not
    with an url query string, it's with an actual URL, that is,
    the actual name of the directory. It
    can't be "ça alors: it's a déjà-vu". But I
    want to allow the user to name their directory like that
    if they want. So I need a way to encode this into characters
    that can be used for an actual
    directory on the server.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Special Characters in search terms and in data

    I'm having a hard time making a decision about what types of special characters I should support in my Contains search.
    I know that some of my data has dashes in it like '1034-AMFM' but if a user puts that in the search term it will be interpretted as a special character by OracleText correct?
    What I have resorted to at the moment is stripping all special characters out of the users search terms but this severely limits the capabilities of Oracle Text and what I'm stuck with is a very basic search tool.
    Is there a way to find a happy medium here?

    You need to use a backslash, not a forward slash. The following demonstrates the behavior under different circumstances, such as specifying the hyphen as a printjoin or skipjoin or whitespace, which is the default, with and without escaping:
    SCOTT@10gXE> CREATE TABLE test_tab (test_col  VARCHAR2 (30))
      2  /
    Table created.
    SCOTT@10gXE> INSERT ALL
      2  INTO test_tab VALUES ('1034-AMFM')
      3  INTO test_tab VALUES ('1034 AMFM')
      4  INTO test_tab VALUES ('1034AMFM')
      5  INTO test_tab VALUES ('95.1-FM')
      6  SELECT * FROM DUAL
      7  /
    4 rows created.
    SCOTT@10gXE> -- without specifying hyphen as printjoin or skipjoin or whitespace
    SCOTT@10gXE> -- or continuation or punctuation or whatever:
    SCOTT@10gXE> CREATE INDEX test_idx ON test_tab (test_col)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  /
    Index created.
    SCOTT@10gXE> SELECT token_text FROM dr$test_idx$i
      2  /
    TOKEN_TEXT
    1034
    1034AMFM
    95.1
    AMFM
    FM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034-AMFM') > 0
      2  /
    no rows selected
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034\-AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034{-}AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '{1034-AMFM}') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034 AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034AMFM') > 0
      2  /
    TEST_COL
    1034AMFM
    SCOTT@10gXE> -- with hyphen as printjoin:
    SCOTT@10gXE> DROP INDEX test_idx
      2  /
    Index dropped.
    SCOTT@10gXE> EXEC CTX_DDL.CREATE_PREFERENCE ('test_lex', 'BASIC_LEXER')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> EXEC CTX_DDL.SET_ATTRIBUTE ('test_lex', 'PRINTJOINS', '-')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> CREATE INDEX test_idx ON test_tab (test_col)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS ('LEXER test_lex')
      4  /
    Index created.
    SCOTT@10gXE> SELECT token_text FROM dr$test_idx$i
      2  /
    TOKEN_TEXT
    1034
    1034-AMFM
    1034AMFM
    95.1-FM
    AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034-AMFM') > 0
      2  /
    no rows selected
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034\-AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034{-}AMFM') > 0
      2  /
    no rows selected
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '{1034-AMFM}') > 0
      2  /
    TEST_COL
    1034-AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034 AMFM') > 0
      2  /
    TEST_COL
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034AMFM') > 0
      2  /
    TEST_COL
    1034AMFM
    SCOTT@10gXE> -- with hyphen as skipjoin:
    SCOTT@10gXE> DROP INDEX test_idx
      2  /
    Index dropped.
    SCOTT@10gXE> EXEC CTX_DDL.DROP_PREFERENCE ('test_lex')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> EXEC CTX_DDL.CREATE_PREFERENCE ('test_lex', 'BASIC_LEXER')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> EXEC CTX_DDL.SET_ATTRIBUTE ('test_lex', 'SKIPJOINS', '-')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> CREATE INDEX test_idx ON test_tab (test_col)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS ('LEXER test_lex')
      4  /
    Index created.
    SCOTT@10gXE> SELECT token_text FROM dr$test_idx$i
      2  /
    TOKEN_TEXT
    1034
    1034AMFM
    95.1FM
    AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034-AMFM') > 0
      2  /
    no rows selected
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034\-AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034{-}AMFM') > 0
      2  /
    TEST_COL
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '{1034-AMFM}') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034 AMFM') > 0
      2  /
    TEST_COL
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034AMFM
    SCOTT@10gXE> -- with hyphen as whitespace:
    SCOTT@10gXE> DROP INDEX test_idx
      2  /
    Index dropped.
    SCOTT@10gXE> EXEC CTX_DDL.DROP_PREFERENCE ('test_lex')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> EXEC CTX_DDL.CREATE_PREFERENCE ('test_lex', 'BASIC_LEXER')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> EXEC CTX_DDL.SET_ATTRIBUTE ('test_lex', 'WHITESPACE', ' -')
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> CREATE INDEX test_idx ON test_tab (test_col)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS ('LEXER test_lex')
      4  /
    Index created.
    SCOTT@10gXE> SELECT token_text FROM dr$test_idx$i
      2  /
    TOKEN_TEXT
    1034
    1034AMFM
    95.1
    AMFM
    FM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034-AMFM') > 0
      2  /
    no rows selected
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034\-AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034{-}AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '{1034-AMFM}') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034 AMFM') > 0
      2  /
    TEST_COL
    1034-AMFM
    1034 AMFM
    SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '1034AMFM') > 0
      2  /
    TEST_COL
    1034AMFM
    SCOTT@10gXE>

  • Special Characters issue in DEV and QAS

    Hi,
    I am uploading a file that has special characters (Japanese).
    In the DEV system the special character is converted to #. Which the business wants.
    In QAS system the special character is not converted and is as it is, which makes the business users difficult to find out if any speical characters are there and they don't want the special character as it is
    The file consists millions of record with a possibility of four or five records with special characters
    The special characters on keyboards is not an issue.
    The programs in DEV and QAS system are same and the file tested is also the same but different results.
    Tried in Tcode SNLS to find something but didn't know what and where to look into.
    What could be the issue in this? Looks like this is Basis issue but would like to know if anyone can let me know.......
    Regards
    Sandeep

    Hi ,
    i want to check ur open dataset statement in the program which is being used here if at all in ur case.
    Can you please check the relavant code page in both the D and Q systems and search with the appropriate hexa decimal values(for the special characters ) in both the systems ..
    u can use code page by tcode scp ..
    ex -> as u say a special char sp1 is having entry in q and code page which is being used (like 4200 )
    is not having in d03 .
    then if in d03 this page has no entry then it shows as # , since it is showing in q then it has an entry over there. this is my guess..
    so if at all the client wants not to see this special char's , u need to remove them from this code page.. and check ..
    Cant say if this can solve but u can take this as one more way of dealing with code pages  and special chars....
    br vijay..

  • Problem while reading special characters in java

    Hi i am faving the follwing xml.
    <ns1:dc_application_bullets>
    <w:p wsp:rsidR="004E4084" wsp:rsidRPr="007024E6" wsp:rsidRDefault="000D5B97" wsp:rsidP="007024E6">
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii="Arial Unicode MS" w:fareast="Arial Unicode MS" w:h-ansi="Arial Unicode MS" w:cs="Arial Unicode MS" w:hint="fareast" />
    <wx:font wx:val="Arial Unicode MS" />
    <w:lang />
    </w:rPr>
    <w:t>������</w:t>
    </w:r>
    </w:p>
    </ns1:dc_application_bullets>
    no i ma trying to parse this XML using java program and jdom parser. when i try to read the special chacters and print then i ma getting ?? on the console.
    how can i print on to the console as the one what they look.
    any help is appreciated.

    please any bosy throw some light on this.You first. Do you think we're mindreaders? Reading and printing code please.

  • I am having problems with my java scrip and html, I don't know if it was me or not?

    java scrip was downloaded but I cant open anything with java, also my html is not reading write. I am not sure if I did something with the plug ins or add on. Oh ya I am running on a mac with mountain lion.
    Please Advise,

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    Make sure that JavaScript is enabled (javascript.enabled should be true) and isn't blocked.
    *http://kb.mozillazine.org/JavaScript
    Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

  • Remove all the special characters using java.util.regex

    Hi,
    How to remove the all the special characters in a String[] using regex, i have the following:-
    public class RegExpTest {
         private static String removeSplCharactersForNumber(String[] number) {
              String number= null;
              Matcher m = null;
                   Pattern p = Pattern.compile("\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\_\\+\\-\\{\\}\\|\\;\\\\\\'////\\,\\.\\?\\<\\>\\[\\]");
                   for (int i = 0; i < number.length; i++) {
                   m = p.matcher(number);
                   if (m.find()) {
                        number= m.replaceAll("");
                   System.out.println("Final Number is:::"+number);
                   return number;
              public static void main(String args[]){
                   String[] str = {"raghav!@#$%^&*()_+"};
                   RegExpTest regExpTest = new RegExpTest();
                   regExpTest.removeSplCharactersForNumber(str);
    This code is not working and m.find() is "false", here i want the output to be raghav for the entered string array, not only that it should remove all the special characters for a entered string[]. Is there a simple way to do this to remove all the special characters for a given string[]? More importantly the "spaces" (treated as a spl. character), should be removed as well. Please do provide a solution to this.
    Thanks

    You don't need the find(). Just use the replaceAll() on each element of the String[] i.e.
    String[] values = ...
    for (int i = 0; i < values.length; i++)
        values[i] = p.matcher(values).replaceAll("");
    }I can't understand your regex since the forum software has mangled it but you just need to add a space to the set of chars to remove. When you post code, surround it with CODE tags then the forum software won't mangle it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Java, Oracle, and Arabic Characters

    Hi,
    I need to run some Forms fmb files that contain Arabic characters through Oracle's forms to xml converter (frmf2xml.bat). The XML that is generated by the utility contains strings such as "رقم الموظ�" instead of the Arabic characters I was expecting.
    The XML output by frmf2xml.bat is encoded as UTF-8.
    My NLS_LANG is set to AMERICAN_AMERICA.UTF8. The characters display fine in Forms Builder.
    Is there another localization setting I need to make with the conversion utility or even with Java itself?
    Any insight or comments appreciated.
    Dave

    On a related note, I am seeing a couple of different types of 'incorrect' characters based on different NLS_LANG settings.
    If it is set to AMERICAN_AMERICA.UTF8, I get characters like this:
    رقم الموظ�
    If it is set to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, I get characters like this:
    ÑÞã ÇáãæÙÝ
    Do any of you know what these characters are?
    Thanks for any insight.

  • Diff between Java,Window and HTML Clients

    Hi can any body clear me
    what is the difference between
    1. JAVA Client
    2. Windows Client
    3. HTML Client.
    regards
    mmukesh

    The Windows client requires SAPGUI for Windows loaded on the dekstop (400+ MB of disk), but it works most efficiently.
    The HTML client requires an ITS and is not as efficient, but need no specialized software on the desktop.
    The Java client is almost never used except by Mac and Unix users!
    Cheers
    try searching SDN for SAPGUI variants for more details

  • Java Script and HTML

    Hi,
    i am creating a web page dynamically through ajax like this
    here i am creating a td element and appending a button element to it
    var td5= document.createElement("TD");
         td5.style.whiteSpace = "nowrap";
         td5.setAttribute("id", "button" + hostname);
         var button=document.createElement("input");
        button.setAttribute("type", "button");
        button.setAttribute("id", "updatebutton" + hostname);
        button.setAttribute("value", "Click here");
        button.setAttribute("onclick", "alert('OK')");
        td5.appendChild(button);it appearing good on web page the but when i click the button, where i am not getting supposed alert
       button.setAttribute("onclick", "alert('OK')"); line is not showing effect
    when i try like this
    button.onclick=new Function (alert('hi'));when my IE loads the page i am getting alert where as , alert must come after clicking the button
    any work around please
    Thanks
    R

    Friends I want to try something but I am totally lost on how to achieve it.Just to let u know that I have not worked in JAVASCRPT at all.And I am in great hurry to finish this work.
    What I am looking for is :
    1) a JSP page is thrown
    2) a button is clicked
    3)Moment the button is clicked I want a file to be created with an extension HTML (having all the info from the database) by using FileWriter class .After the file is created and ready ,Then I want to open this file in another browser window.
    I know that to achieve this I have to use Javascript,but I am totally lost on how to do that.
    I mean can I say in JAVASCRIPT that if this button is clicked then execute a java method which retrives data from the oracle database in the server and writes it to a HTML file and then after the writing is done,open it another window.
    Please help.

  • Needed help on java script and html in PL/SQL doing nothing

    Hi,
    Created a procedure which takes username and password and changes OID, database password for that user with that password.
    I created a page in oracle portal and trying to call this below script package:
    BEGIN
    user_name := portal.wwctx_api.get_user;
    HTP.p
         <!-- BEGIN CODE FRAGMENT -->
         <script language="javascript">
         <!--
         function ValidatePass()
         var passStr = document.getElementByid("p_password").value;
         var confPassStr = document.getElementByid("Confirm_Password").value;
              var pattern = /[^a-zA-Z0-9]/;
              if (passStr == null || passStr == "") {
                   alert("Password value missing");
                   return;
              if (confPassStr == null || confPassStr == "") {
                   alert("Confirm password value missing");
                   return;
              if (passStr.match(pattern) == null && confPassStr.match(pattern) == null) {
                   if (passStr == confPassStr) {
                        document.form.submit();
                   } else {
                        alert("Your entries did not match. Please try again!");
              } else {
                   alert("Invalid charcters entered");
         //-->
         </script>
         <form name="changepassword"
         action="http://<hostname>:7777/pls/sys/sys.gx_user_mgt.globally_update_password"
              method="post" AutoComplete="Off">
    <input type="hidden" name="username" value=" '
    || user_name
    || ' " id="p_username"/>
    New Password:
    <input type="password" name="p_password" id="p_password">
    <br>
    <br>
    Confirm Password:
    <input type="password" name="Confirm_Password" id="Confirm_Password">
    <br>
    <br>
    <input style="padding:2px;" type="submit" value=Login onClick="ValidatePass();">
    </form>
    END;
    This gx_user_mgt.globally_update_password is the custom procedure I should call passing username and p_password
    Thanks in advance.

    Friends I want to try something but I am totally lost on how to achieve it.Just to let u know that I have not worked in JAVASCRPT at all.And I am in great hurry to finish this work.
    What I am looking for is :
    1) a JSP page is thrown
    2) a button is clicked
    3)Moment the button is clicked I want a file to be created with an extension HTML (having all the info from the database) by using FileWriter class .After the file is created and ready ,Then I want to open this file in another browser window.
    I know that to achieve this I have to use Javascript,but I am totally lost on how to do that.
    I mean can I say in JAVASCRIPT that if this button is clicked then execute a java method which retrives data from the oracle database in the server and writes it to a HTML file and then after the writing is done,open it another window.
    Please help.

  • Jsp,java script and html

    Friends I want to try something but I am totally lost on how to achieve it.Just to let u know that I have not worked in JAVASCRPT at all.And I am in great hurry to finish this work.
    What I am looking for is after
    1) a JSP page is thrown
    2) a button is clicked
    3)Moment the button is clicked I want a HTML file to be created (having all the info from the database) by using FileWriter class .After the HTML file is created and ready ,Then I want to open this HTML file in another window.
    I know that to achieve this I have to use Javascript,but I am totally lost on how to do that.
    I mean can I say in JAVASCRIPT that if this button is clicked then execute a java method which retrives data from the oracle database in the server and writes it to a HTML file and then after the writing is done,open it another window.
    Please help.

    Friends I want to try something but I am totally lost on how to achieve it.Just to let u know that I have not worked in JAVASCRPT at all.And I am in great hurry to finish this work.
    What I am looking for is :
    1) a JSP page is thrown
    2) a button is clicked
    3)Moment the button is clicked I want a file to be created with an extension HTML (having all the info from the database) by using FileWriter class .After the file is created and ready ,Then I want to open this file in another browser window.
    I know that to achieve this I have to use Javascript,but I am totally lost on how to do that.
    I mean can I say in JAVASCRIPT that if this button is clicked then execute a java method which retrives data from the oracle database in the server and writes it to a HTML file and then after the writing is done,open it another window.
    Please help.

  • Replace special characters in xml to its HTML equivalent

    Hello All,
    I did a small xml processor which will parse the given xml document and retrieves the necessary values. I used XPath with DocumentBuilder to implement the same.
    The problem which had faced initially was, i could not able parse the document when the value comes with the '&' special character. For example,
    <description>a & b</description>I did some analysis and found that the '&' should be replaced with its corresponding HTML equivalent
    &amp; So the problem had solved and i was able to process the xml document as expected. I used the replaceAll() method to the entire document.
    Then i thought, there would be some other special character which may cause the same error in future. I found '<' is also will cause the same kind of error. For example,
    <description>a < b</description>Here i couldn't able to use the replaceAll(), because even the '<' in the xml element tags was replaced. So i was not able to parse the xml document.
    Did anyone face this kind of issue? Can anyone help me to get rid of this issue.
    Thanks
    kms

    Thats the thing about XML. It has to be correct, or it doesn't pass the gate. This is nothing really, seen it many times before. It becomes funny when you start to run into character set mismatches.
    In this case the XML data should have either been escaped already, or the data should have been wrapped in cdata blocks, as described here:
    http://www.w3schools.com/xml/xml_cdata.asp
    Manually "fixing" files is not what you want to be doing. The file has to be correct according to the very simple yet strict XML specifications, or it isn't accepted.

Maybe you are looking for

  • Wait() and notifyall() problem in servlet.

    Can anyone help me with this..... I am creating an application which has one gateway inside which handles for logger, dbmodule etc are made and passed to biz logic. This biz logic using logger obj made in gateway, does the logging. Now i hv to do ser

  • How can i print a result in one line

    hi guys i have a small procedure as below create or replace procedure test_sp is l_str varchar2(2000) := replace('14522|||Lessig|||Minna|||Lessig, Minna','|||','|'); i pls_integer; l_start_pos INTEGER := 1; l_end_pos INTEGER :=1; field_v varchar2(255

  • A1465 (Mid-2013 11") wifi/bt antenna requirements

    While replacing the upper screen assembly on my 11" Macbook Air I damaged the leads from the antenna.  I want to replace it with an aftermarket antenna that can be mounted elsewhere in the body of the computer.  I have found several that use the same

  • How do i get the music that is on my pc in to itunes, how do i get the music that is on my pc in to itunes

    how do i get the music that is on my pc in to itunes, how do i get the music that is on my pc in to itunes?

  • How to generate clearing document

    Hi guys, My problem is: Through Tcode: FB05, I can post the open items in Accounting Document(which hasn't been cleared before). After I post the open items successful, a clearing document will generate for the operation. The clearing document includ