Is there any other way to handle special characters other than using CDATA?

I have xerces parser with which i am trying to parse data having special characters. Special characters also include other ascii characters. I tried using CDATA Section but still the problem persists.
It would be really helpful if anyone can help me in solving this problem.
Error encountered :
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xf) was found in the CDATA section.
The XML which I use contains junk characters also . Have a look at the following:
<?xml version='1.0' encoding='UTF-8' ?>
<IMAGE_RESPONSE xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='ImageResponse.xsd'>
<IMG_TYPE>PNG</IMG_TYPE>
<IMG_WIDTH>650</IMG_WIDTH>
<IMG_HEIGHT>250</IMG_HEIGHT>
<IMAGE_DATA>
<IMGKEY>20020827:00000000:100000000010:02:</IMGKEY>
<IMAGE_INFO>This is image info</IMAGE_INFO>
<IMG_SOURCE>DCE_CIMS</IMG_SOURCE>
<FRONT_IMG_FBW><![CDATA[�����&�J�Z�R��]]></FRONT_IMG_FBW>
<FBW_ERROR>B</FBW_ERROR>
<FRONT_IMG_FGS>C</FRONT_IMG_FGS>
<FGS_ERROR>D</FGS_ERROR>
<BACK_IMG_BBW>E</BACK_IMG_BBW>
<BBW_ERROR>D</BBW_ERROR>
<BACK_IMG_BGS>A</BACK_IMG_BGS>
<BGS_ERROR>Unable to retrieve Back Gray-Scale image</BGS_ERROR>
</IMAGE_DATA>
</IMAGE_RESPONSE>

java.net.URLEncoder.encode( text )
I've found this to be a pretty easy way to handle invalid characters...

Similar Messages

  • Is there any simple way to create ods files (OpenOffice Calc)?

    Is there any simple way to create ods files (OpenOffice Calc) using ResultSet (from java.sql)?

    Mabe, you can create CVS files (plain text) Ej...
    ====test.cvs=====
    1, "aaa"
    2, "bbb"
    3, "ccc"
    ===============
    Using a "BufferedWriter"

  • I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    Purchase and use Paragon Camp Tune

  • Is there any other ways I can get videos on my iPod?

    Well I want to get shows from Degrassi, problem is that the store does not sell them. Is there any other way I could get the shows onto my video iPod?

    somehow you gotta get the episodes on your computer, then you can convert it to your iPod.
    also if you have TiVO, theres a special way for it.
    and btw, i love degrassi!

  • I have an older ipod shuffle that will not continue to charge when i plug it into my laptop.  is there any other way to charge an ipod shuffle?

    my older ipod shuffle will not charge on my laptop.  it starts and then stops after the light blinks four or five times.  is there any other way to charge a shuffle?

    Hello there, gallo2432.
    The following Knowledge Base article offers up some great  information on how to charge your iPod shuffle:
    iPod shuffle: How to charge the battery
    http://support.apple.com/kb/HT1477
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • My iPhone 4s notified me that I had to manage my storage  so I deleted  apps that used a lot of space I deleted almost all my picture and it still keeps telling me  I don't have enough storage  is there any other way I can make room on my phone ?

    My iPhone 4s notified me that I had to manage my storage  so I deleted  apps that used a lot of space I deleted almost all my picture and it still keeps telling me  I don't have enough storage  is there any other way I can make room on my phone ?  Were it shows how much storage  I have available it still says 9.9 even after all that I have done so I don't know if I need to change my storage plan or what but anything will help I guess

    Check for 'others' in iTunes against your iPhone.
    Restore from a previous backup to reclaim some of it.
    Still want more, Restore in iTunes, setup as New.

  • Is there any other way to get Adobe Captivate help?

    Hi guys,
    is there any other way to get Adobe Captivate specific help? I've posted a question twice with no help, it's very specific, so no one here might actually know the solution. I'm wondering though, since the chat is obviously not for Captivate users with product or service questions.
    Is there a tech team I can somehow contact? We really need an answer to the problem.
    Thanks,
    Nat
    P.S. I'll post the problem again here:
    We publish mp4 training videos as HTML5 content and have the problem that we need to restrict the player to only play/pause.
    Adobe Captivate 7 works fantastic for us on almost all devices, many Androids, many browsers, and even on iPad. Captivate, after adding the video as a multi-slide video to one slide and publishing it as HTML5 content, only lets the student play and pause the video - just what we need.
    But then we test it on iPhone and the iPhone's internal quicktime player recognizes the mp4 video and kicks in, gives the student all the functions they want, totally overrides the HTML5 published Captivate restricted playback options.
    Is there ANY way we can get around that? Any function or box we haven't checked before publishing the HTML5 content?
    We would even be happy, if the video wouldn't play on iPhone - just as long as they can't use it to fast forward to the end of the video.
    Does anyone here know how to bypass the internal iPhone 5 player?
    Thanks,
    Nat

    By the way, I have updated to the newest Captivate 7 version and am using iOS version 7.0.4.
    Again, it's fine on iPad, but not on iPhone 5.

  • Can we use Apple tv to present with iPad wirelessly but no internet? if not, is there any other way?

    Can we use Apple tv to present with iPad wirelessly but no internet? if not, is there any other way?  Please tell me what's the best solution if I want to present what's on the iPad screen to TV or projector withtout using internet network or small range of bluetooth. 

    yes

  • I can no longer change my song names like i used to. i use to be able to right click and go to "get info" and then change the song name, artist and album, now i can't is there any other way to change the songs name and info

    When I get songs and put them on my itunes accout on my computer I used to be able to rename them right clicking, going to "get info" and then renaming everything I wanted like song name, album and artwork. I also use to be able to click on the song then click and hold on it and be able to rename it. But all the songs I have gotten after the last update have not been able to be renamed in any of the old ways I use to be able to. Is there any other way to rename songs because I know I can't undo updates and that seems to be whats causing it.
    Thankyou for your time

    You are describing an iTunes problem, not an iPod touch problem. Try posing in the iTunes forum.

  • I Tunes has lost a large proportion of my music library.  The music in question is however still on my IPod.  Is there any way to sync backwards so the IPod updates ITunes?  Or is there any other way I can try to recover the lost music files?

    I Tunes has lost quite a large proportion of my music library.  I think this may have happened when I tried to download a previous version of ITunes that failed to load.  Whatever, the music is still on my IPod.  Is there anyway files on an Ipod can be transferred back into ITunes?  Or is there any other way I can try to recover my music files?  Also, I no longer have any confidence in ITunes ability to store data efficiently and wonder if there is any way I can back up my IPod outside ITunes?

    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself independently backed up against loss.  To use a device with a new computer you transfer the content from the old computer (or its backup) directly to the new computer, not the device to the new computer. Media syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • I have photos on my iPad that I want to delete. This is my problem. I synced them from my ex-husband's Mac. We are no longer together therefore I don't have access to his computer or iTunes account. Is there any other way to delete them?

    I have photos on my iPad that I want to delete. The problem is I don't have access to the computer used to sync them. It was my ex husbands computer and iTunes account. Is there any other way to delete them?

    Not sure is any of these methods will work.
    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • Since I have the newest version of itunes, I can't back up like normally. The only way is to considilate files and then put them on an external drive which I don't have. Are there any other options? If I can't back up to a disc like I used to, can I inste

    Since I have the newest version of itunes, I can't back up like normally. The only way is to considilate files and then put them on an external drive which I don't have. Are there any other options? If I can't back up to a disc like I used to, can I instead just keep everything on my ipod and then if I have to get a new computer or something just download all my songs from the ipod to my new computer's itunes? Will that work? Will I still be able to keep all my songs that way?

    I'm going to assume the consolidating files does not work due to hard drive space limitations.
    Since you're moving to Windows 7, have you tried using the Windows files and settings transfer utility?  That will move everything for you to the same location on the new computer, it also allows some control over what actually gets moved.
    Alternatively, if you know the location of all of the media, it can be manually moved by copying it from the old computer to the new computer in the same location.
    Also, using the Apple article on moving the library, take a slight twist on what it says.  Move the iTunes library to the external drive, update the settings in iTunes to reflect the library being on the external drive, then consolodate it.
    The options are endless for moving the library... it simply takes a little effort to make it happen and possibly a twist on existing "standard" methods depending on your unique situation.

  • I'm trying to backup a my harddrive with disk utility but I'm getting an error  Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen

    I'm trying to backup a my hard drive with disk utility but I'm getting an error  Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen and spinning wheel. I've tried everything https://discussions.apple.com/message/20580424#20580424
    any help will be greatly appreciated.

    Check here. Also have you done a TimeMachine back up?
    http://support.apple.com/kb/TS2570

  • Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?

    Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?

    No.
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Is there any better way for updating table other than this?

    Hi all, I need to update a row in the table that require me to search for it first (the table will have more than hundred thousands of row). Now, I am using a LOV that will return the primary key of the row and put that primary key to DEFAULT_WHERE property in the block and execute query command to fetch the row that need updating. This works fine except that it require 2-query-trip per update (the lov and the execute_query). Is there any better way to doing this? This update is the main objective for my application and I need to use the most effective way to do it since we need to update many records per hour.

    Thanks Rama, I will try your method. Others, how to query row instead of primary key? I thought that querying primary key is faster due to the index?
    BTW, what people do if you need to update a table using Form? I have been using the LOV then execute query since I first developing form. But I am building a bigger database recently that I start worrying about multiple query trip to dbms.
    FYI my table will have up to million rows on it. Each row will be very active (updated) within 1-2 weeks after it creation. After that it will exist for records purposes only (select only). The active rows are probably less than 1% of all the rows.

Maybe you are looking for

  • Dent, warranty, wobbly, and Apple customer service

    Hey Guys! Long story short, my one year warranty with Apple ended on November 22nd. I did not purchase AppleCare. I've noticed that at the last week of the warranty, my computer has started to wobble. I contacted Apple on Nov. 22, and they sent me a

  • 0PUR_C04

    Hi!! Im using the cube 0PUR_C04 in a standard mode; I activated the infosources and update rules and when I saw the content of infocube some key figures dont have information, I revised the update rules and found this key figures that dont have actua

  • Do I need to redeploy and run tomcat every time I�m changing something?

    Guys, I�m using MyEclipse as the IDE to develop struts application. I am a newbie to this topic (but doing just fine) Anyway, I do this: I write my code, deploy it, run Tomcat and than I click the site to see the results. sometime I am changing the w

  • FMIS on Windows 2003 Enterprise SP2 (will it install?)

    Hi all, Might be a dumb question but a client has Windows 2003 Enterprise SP2 R2 and I was wondering if Flash Media Interactive Server will install and run fine on it? The requirements on the site say Microsoft® Windows Server® 2003 with Service Pack

  • I can't open any of my programs

    When I turn my laptop on, it takes a long time to boot and when it does, even though I can move my cursor around, I can't open any of the programs. I couldn't even turn it off properly. I had to just shut it down by holding the power button. Any sugg