How to remove non-ASCII charcters from an XML generated using Simple Transf

Hi,
I am currently facing a problem where I invoke a ST like
CALL TRANSFORMATION ZTEST
  source root = str
  result xml rawstr.
to prepare an XML using the contents of the ABAP variable str.
In my case sometime the variable str can contain non-ASCII characters. What I find is that ST do not remove these characters and the final XML that get generated thus contains non-parsable xml charcaters.
Is there an efficient way to remove/replace such non-ascii characters within the ST such that my final XML is consumable by any xml parser. I do not want to do a second level of processing by running through the output xml and removing the charcaters individually, because in our system the number of xml messages generated is very high and any such lookup-replace algorithm terms out to be too coslty.
Regards,
Vikas Lamba

Hi
may be you know this syntax :)
<?xdofx:substr(SHIP_TO_LOCATION_NAME,11,44)?>
Rahul

Similar Messages

  • Removing non printable characters from an excel file using powershell

    Hello,
    anyone know how to remove non printable characters from an excel file using powershell?
    thanks,
    jose.

    To add - Excel is a binary file.  It cannot be managed via external methods easily.  You can write a macro that can do this.  Post in the Excel forum and explain what you are seeing and get the MVPs there to show you how to use the macro facility
    to edit cells.  Outside of cell text "unprintable" characters are a normal part of Excel.
    ¯\_(ツ)_/¯

  • Removing Non-Ascii Characters from a String

    Hi Everyone,
    I would like to remove all NON-ASCII characters from a large string. For example, I am taking text from websites and would like to remove all the strange arabic and asian characters. How can I accomplish this?
    Thank you in advance.

    I would like to remove all NON-ASCII characters from a large string. I don't know if its a good method but try this:
    str="\u6789gj";
    output="";
    for(char c:str.toCharArray()){
         if((c&(char)0xff00)==0){
              output=output+c;
    System.out.println(output);
    all the strange arabic and asian characters.Don't call them so.... I am an Indian Muslim ;-) ....
    Thanks!

  • How to remove non-audio files from iPod?

    I used my iPod nano to back up some files when my last computer crashed. Now I can't figure out how to delete them. They are labelled "Other" in the section marked "Capacity". Please help!! thanks!

    With disk use enabled, you just open the iPod in Finder. You should be able to see the folder with the photos in it. If you want to copy them to a place on your computer, just drag them there, or to delete them altogether from the iPod, drag them to the trash.

  • Does anyone know how to remove non-music data from ipod?

    Does anyone know how to get the data that is not songs off of the ipod. I cannot figure it out

    With disk use enabled, you just open the iPod in Finder. You should be able to see the folder with the photos in it. If you want to copy them to a place on your computer, just drag them there, or to delete them altogether from the iPod, drag them to the trash.

  • How to remove time machine backup from a mackbook pro used in target disk mode

    Many months ago I (as my backup drive failed) I used my macbook pro in target disk mode to store the time machine backup of my iMac.  How do I delete the backup on the macbook pro?  I am running mountain lion on both machines.  When I boot the macbook pro in target mode, it's not showing up in the finder on my mac.

    When I boot the macbook pro in target mode, it's not showing up in the finder on my mac.
    From the Finder menu bar, select
    Finder > Preferences > General
    and check the box marked Hard disks.

  • How do remove my phone number from imessage and only use email?

    I do not have a data plan on my iphone so i cant use imesssage when not in wifi. so in order for me to be able to be apart of my friends group messages without having to turn imesssage on and off i need to only use my email address, but it will not let me send and recieve messages from only my email.

    Regardless if using your cell phone number or your Apple ID email address, iMessage requires an internet connection via an available wi-fi network or via your carrier's cellular network. Without a data plan and no internet access with your carrier's cellular network, an iMessage addressed to your email address can be received only when your iPhone is connected to an available wi-fi network no different when an iMessage is addressed to your cell phone number.
    You cannot deselect or remove your cell phone number below you can be reached by iMessage at with iMessage on an activated iPhone. The iPhone's phone number is activated along with your Apple ID.

  • Regex patern to remove non-ascii characters

    Hi,
    How to remove non-ascii character from input for a country france using RegEx.
    Could you please help us to contruct regex pattern from above?
    Thanks

    This isn't a complete answer, but is a good starting point:
    Regex any ascii character - Stack Overflow

  • How to remove my credit card from the App Store

    How to remove my credit card from the App Store

    I used a pre-loaded credit card so when it ran out i had problems, primarily because it wont let me download or update anything until the "billing problem with the last transaction" was resolved. I dont really care if the purchase goes through but i want to be able to update stuff again and it wont give me the option to select 'none' under payment type. do i have to put another card on there just so i can "resolve the billing problem" and then i have  to take it off again or is there a way around this or is it a never ending cycle?

  • Removing non-numeric characters from string

    Hi there,
    I need to have the ability to remove non-numeric characters from a string and I do not know how to do this.
    Does any one know a way?
    Example:
    Present String: (02)-2345-4607
    Required String: 0223454607
    Thanks in advance

    Dear NickM
    Try this this will work...........
    create or replace function char2num(mstring in varchar2) return integer
    is
    -- Function to remove Special characters and alphebets from phone no. string field
    -- Author - Valid Bharde.(India-Mumbai)
    -- Date :- 20 Sept 2006.
    -- This Function will return numeric representation.
    -- The Folowing program is gifted to NickM with respect to his post on oracle site regarding Removing non-numeric characters from string on the said date
    mstatus number :=0;
    mnum number:=0;
    mrefstring varchar2(50);
    begin
    mnum := length(mstring);
    for x in 1..mnum loop
    if (ASCII(substr(upper(mstring),x,1)) >= 48 and ASCII(substr(upper(mstring),x,1)) <= 57) then
    mrefstring := mrefstring || substr(mstring,x,1);
    end if;
    end loop;
    return mrefstring;
    end;
    copy the above program and use it at function for example
    SQL> select char2num('(022)-453452781') from dual;
    CHAR2NUM('(022)-453452781')
    22453452781
    Chao!!!

  • Removing Non Ascii Characters.

    Dear Friends,
    In our application, User copying some data from a document and pasting in a field "Comments".
    If that data consists anything like bullets,arrows of word document. It is inserting some Non keyboard characters into database like below.
    • Analysys
    • Do
    • Now
    • When
    • As
    • We
    don’t know how much he love sthe testing’I am not crazyh’
    I AM ‘USER’ 
    
    
     Uu
     Yy
     tt
    Now user asking to remove all those Non-ASCII characters from Comments Column. Please help!

    Hi Santosh,
    I can remember that I have given you the REGEXP_REPLACE query earlier which you have specified and told you to read some document about it to modify according to your need. It is not very wise thing to depend on others every time.
    Re: Removing Junk Characters.
    Anyway, REGEXP_REPLACE(str,'[^[a-z,A-Z,0-9,chr(0)-chr(127)[:space:]]]*','') can give you some pointer (not tested).

  • HT1918 How to remove my credit card from my App Store Account?

    How I remove my credit card from my Apps Store Account??
    I want to avoid unwanted purcharses from my nephew.... Someone can help me?
    I know it's possible to "upgrade" one account adding credit card, I can not find a way to remove it.

    you can't from the iPad.
    Go to iTunes on a computer, log in with your apple ID and select 'account'.
    After that , select 'payment method' and select 'none'.
    Good luck
    PS: reply if you're having trouble. You use mac or windows?
    Message was edited by: jesterwylde

  • How to remove credit card details from iPad 4. So I can download free apps from apps store??

    Please someone tell me how to remove credit card details from iPad 4, so I download free apps from App Store??

    None for payment
    After establishing the Credit Card account, you can remove the credit card information by editing your payment info, choosing "None".
    Note: You won't find "None" if you have not purchase anything with the Credit Card.

  • How to remove the credit card from the Apple id?

    how to remove the credit card from the Apple id?
    plz ITS urgently

    If the option to select "None" isn't appearing when you attempt to edit your payment information, then there is likely a billing issue with your last iTunes Store purchase(iTunes didn't receive payment from your credit card company for that order). Before you can remove your credit card, you have to pay for the unpaid order. You can call your credit card company and troubleshoot the billing issue with them, or try another card, or if you live in a country that supports iTunes Gift Cards, you can redeem one of those to pay for the order. Once you have done that, you should be able to remove your credit card info as outlined in http://support.apple.com/kb/ht1918

  • Remove non ascii character

    i need a SQL or Procedure that will search non ascii character  in data and update the data by removing it
    Suppose there is table TABLE1 with Column NAME
    it contain number of row and few has non ascii character eg 'CharacterÄr'
    My sql or procedure should be able to search  'CharacterÄr' and update the row with 'Character'
    i.e. removing the non ascii character 'Ä' from the data

    Hi,
    Okay, in that case:
    SELECT str
    ,      REGEXP_REPLACE ( str
                          , '[^[:cntrl:] -~]'
                          )   AS new_str
    FROM    table_x
    or, to actually change the rows that contain the bad characters:
    UPDATE  table_x
    SET     str = REGEXP_REPLACE ( str
                                 , '[^[:cntrl:] -~]'
    WHERE   REGEXP_LIKE ( str
                        , '[^[:cntrl:] -~]'

Maybe you are looking for

  • Parameters from midlet to servlet

    Hi all, i have been trying to pass values from MIDlet (setRequestProperty(); ) and to servlet (request.getParameter();). but when i tried to print out the value, it just contained NULL value. I had a look at the java forum website, there were plenty

  • Create Flash Video to Stream on my Website....

    I believe I ought to be able to render a flash video from my Adobe Premiere CS3 or After Effects CS3 and then stream it on my website.  Problem is that's as far as it gets.  I haven't had any luck actually doing it.  Anybody have any ideas?

  • I cal time zone support

    I use time zone support within ical, however, I don't travel to one of the time zones anymore. Now when I change the time zone the one I don't use still shows up in the drop down list. Is there a way to delete this time zone so the ones I do use are

  • What happens to QT Pro 7.5.5 if I install QT 7.6.4?

    Hello! I have an iMac 3GHz with OS 10.5.5 running. (I cannot upgrade to Snow Leopard due to Pro Tools incompatibility, FYI.) I installed iTunes 9 b/c I wanted to download a movie and iTunes 8 wouldn't allow it. But I did not realize all the other ins

  • Tengo un problema mi macbook no enciende ?

    mi mac no enciende y hhe probado con otros cargadores que es lo que puede tener