Remove ns0 without affecting namespace

Hi Gurus,
Have a Idoc to File scenerio.
The file generated after mapping is
Eg:
<ns0:Document xmlns="urn:iso:std:iso:camt">
<tag0>data0</tag0>
<tag1>data1</tag1>
<ns0:Document>
My requirement is to remove ns0 from the root element "Document"  so output is in format(namespace is not affected):
<Document xmlns="urn:iso:std:iso:camt">
<tag0>data0</tag0>
<tag1>data1</tag1>
<Document>
If i remove the targetNameSpace from my xsd ,the namespace is not displayed in the output.But as per my requirement the namespace should be displayed.
Please let me know if there is any alternative solution or code(XSLT or Java) which can give the required output.

Hi Amit,
I think you can do it with XMLAnonymizerBean module in adapter module parameter tab:
You use this module to anonymize XML elements and attributes by removing namespaces or namespace prefixes from the XML document of the main payload.
You can define a particular namespace prefix for each namespace. You can also change the encoding attribute of the XML declaration.
Refer the weblog as well as help:
/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
Thnx
Chirag
Reward Points if it helps.
Edited by: chirag Gohil on Jan 5, 2008 6:07 PM

Similar Messages

  • Removing ns0 from namespace

    hello,
    Have a Idoc to File scenerio.
    The file generated after mapping is
    Eg:
    <ns0:Document xmlns="urn:iso:std:iso:camt">
    <tag0>data0</tag0>
    <tag1>data1</tag1>
    <ns0:Document>
    My requirement is to remove ns0 from the root element "Document" so output is in format(namespace should  not be deleted or affected):
    <Document xmlns="urn:iso:std:iso:camt">
    <tag0>data0</tag0>
    <tag1>data1</tag1>
    I did follow the XMLAnonymizer blog (/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
    )..            but no use..Can someone help me in removing this ns0 from namespace.
    regards

    >
    ayrahcaanilan wrote:
    > Is there any workaround which i can try out???
    >
    > please suggest
    >
    > reagrds
    Check this links:
    http://www.riyaz.net/blog/beginners-guide-to-xslt-mapping-in-sap-pi/technology/sap/769/
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    Edited by: spantaleoni on Jan 14, 2011 12:44 PM

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • How to remove a photo from a LRPublishedCollection without affecting the Publish Service?

    Hello guys!
    I would like to know if there is a way to remove a photo from a LRPublishedCollection without affecting the Publish Service. Basically I would like it to be removed from the collection but I don't want to be added to "Deleted Photos to Remove".
    Thanks a lot!
    Jordy.

    I don't know how to keep it from being put on the "Deleted Photos to Remove" list at least briefly, but if you do this, it'll amount to the same thing:
    * save status for all photos in collection
    * set status of all photos to "do not publish"
    * remove photo from collection.
    * publish the collection, and make sure you call the deleted callback, but don't do anything else.
    * restore previous photo statuses.
    Only works in Lr4+.
    Rob

  • Upgraded to LR5.7 and PS Elements 13.  Using a SSD which is becoming Full! Can I remove older versions of these programs without affecting the functionality of the new programs?

    Upgraded to LR5.7 and PS Elements 13.  Using a Solid State Drive which is becoming Full! Can I remove older versions of these programs without affecting the functionality of the new programs?

    Yes, there is no need to keep previous versions of software on the SSD (or on your computer).
    Also, you didn't mention this but if the photos are on the SSD, you should move them off the SSD to a regular hard disk using these instructions: Adobe Lightroom - Find moved or missing files and folders

  • Regarding order reversal without affecting stock

    Dear all,
    Issue is regarding the prod. order reversal without affecting stock of materials. Scenario is as follows.
    I have an order of X matl. year 2011 - this order not yet delivered where as the raw materials has been issued by mb1b (261).
    As this order not yet been delivered, it is showing in WIP with value. KKAX.
    Afterwards user created second order and completed too. Now previous order reamined open without confirmation.
    For removing ths order from WIP, we can reverse the 261 movement in current date, but it will also revert the raw matl. stock alongwith values to unrstricted.
    Where as finance peoples doesnt want thew same.
    Also as del. qty. is not 0, we cant apply del. flag too.
    Please suggest the appropriate way to remove the previous order from wip without affecting the stock of materials.
    Dont want to do changes in table entry also.
    with best regards,
    Manish.

    Hi,
    Thanks boss.
    It is working now correctly.
    The issue is the  i_mvtit-XSTOB should be equal space in case of Goods issue while incase of Reversal it should be equal to X.
    Thanks for ur efforts.
    I had awarded you points.
    Thanks a lot.
    Thanks & Regards,
    Rayeez.

  • How to format my computer without affecting the software installed?

    how do I format my computer without affecting the software installed?

    You can, but if you don't format the drive using the Zero Data option all your personal files will still be accessible to someone who knows how to gain access to them. If that's not a concern then here are two options (easy and not so easy):
    The Easy Way
    1. First, boot from your Tiger DVD, select your language and click on the Continue button, then select Disk Utility from the Utilities menu, select your boot hard drive, go to the First Aid tab, and click the button for Repair Disk. Repeat this until no trouble is found. Then click on the Repair Permissions button. Then quit DU, return to the installer and shutdown the computer for a couple of minutes.
    This will assure that the drive is OK and permissions are OK.
    2. Next, boot to single user mode by restarting and after the chime press and hold down the COMMAND-S keys until a black screen with white type appears.
    3. At the prompt, type the following commands pressing return after each command line:
    /sbin/fsck -yf
    mount -uw /
    rm /private/var/db/.AppleSetupDone
    shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when you reboot, it will send you to the startup wizard where you can start a new user without reinstalling.
    The Not So Easy Way
    Follow these instructions step by step to prepare a Mac for sale:
    First, back up the data:
    1) Shut down all Virtual PCs. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    2) Clone to an external drive using Carbon Copy Cloner.
    Next, prepare the machine for the new buyer:
    3) Deauthorize the computer in iTunes! Deauthorize both iTunes and Audible accounts.
    4) Remove Open Firmware passwords
    5) Turn the brightness full up and volume nearly so.
    Install a fresh OS:
    6) Insert the OS X install CD/DVD.
    7) Restart the computer while holding down the C key to boot from the CD/DVD.
    8) Run Disk Utility from the file menu and erase the internal hard drive (optionally zero all data).
    9) Install OS X.
    10) Reboot the computer.
    11) From the welcome screen, you can skip the registration step by typing command-Q.
    12) When prompted, create an account (it will be an admin account).
    13) From your new admin account, configure networking.
    14) Then use Software Update to bring your system and all of it's applications up to date.
    15) From Disk Utility, repair permissions on the new volume.
    Now delete the account you just created:
    16) Boot from a different volume (e.g. a firewire drive, if available)
    17) Clean up the image using the following terminal commands:
    prompt> rm /Volumes/<imagevol>/var/db/BootCache.playlist
    prompt> rm /Volumes/<imagevol>/var/db/volinfo.database
    prompt> rm -r /Volumes/<imagevol>/var/vm/swap*
    18) Now you can get rid of the admin account you used to set up the machine Use the terminal:
    prompt> nicl -raw /Volumes/<imagevol>/var/db/netinfo/local.nidb -delete /users/<admin>
    prompt> rm -r /Volumes/<imagevol>/Users/<admin>
    prompt> rm /Volumes/<imagevol>/var/db/.AppleSetupDone
    19) Shut down and ship it to your buyer. When they get it, it will boot to the Welcome screen just like a factory Mac, except that it's better because it's completely up to date.

  • How to uninstall previous version of Lightroom without affecting new version

    I just upgrade from Lightroom 1.4 to 2.1
    But I know have 2 version of Lightroom on my computer. I want to uninstall 1.4 without affecting my back-ups and my stored edit which are all in place for 2.1.
    I figure I could probably do this safely by backing up the Lightroom folder below in case it's removed while uninstalling 1.4. But before I go ahead and do this I would like to be sure.
    Below is the location for where I think is my Lightroom Back-ups.
    C:\Documents and Settings\All Users\Documents\My Pictures\Lightroom
    Thanks.

    There is no point installing 2.0 indeed. The 2.1 installer is a full installer and will take the 2.0 serial. You cannot use a Lightroom 2 catalog in 1.4. When you upgrade a catalog, Lightroom will automatically upgrade a copy and keep the old 1.4 catalog untouched, so you can still use that in the old version. They won't be kept in sync however going forward.

  • Can I un-install CS5 trial programs without affecting CS6 purchased programs?

    I have a trial Creative Suite 5 installed.  the trial has expired.  I have since bought Photocop CS6. Can I safely uninstall all the CS5 programs without adversly affecting the install of PhotoShop CS6?

    Hello,
    Yes you can uninstall CS5 programs without affecting Photoshop CS6. Please make sure that you are using the standard uninstallation procedure:
    On Windows XP, uninstall via Add or Remove Programs in the Control Panel.
    On Windows Vista or Windows 7, in the Control Panel select Programs then Programs And Features.
    On Macintosh, the uninstaller is in Applications/Utilities/Adobe Installers.
    Ankit Khurana

  • How do I remove iTunes without all my purchased items lost?

    How do I remove iTunes without all my purchased items lost?

    iTunes stores you music in:
    Music\iTunes\iTunes Media...
    This should not be affected by uninstalling iTunes.
    It is always prudent to backup your valuable music.

  • With CS4 installed already, can I uninstall InDesignCS3 without affecting the CS4 suite?

    With CS4 installed already, can I uninstall InDesignCS3 without affecting the CS4 suite?
    InDesignCS3 was downloaded from the internet. CS4 suite was installed from CDs. Both are currently on my computer. How can I uninstall InDesignCS3?

    Just use the add/remove programs feature in the control panel, but I would strongly suggest that you don't do this. If you ever need to supply a CS3 file you'll be sorry you uninstalled it.
    Bob

  • Have 2 iPads on same apple acct. how wipe just one without affecting other?

    I have 2 iPads on same apple account. How do I wipe one to give to my wife without affecting the other one. (I once deleted some bookmarks and they were deleted on both iPads.)

    Hi joanfromgalax,
    The resource below explains what to do before you give your iPad to your wife.  Follow the steps in the order given.  If you sign out of the iCloud account as instructed in step 2, then the data will not be deleted.
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/en-us/HT201351
    Before you sell or give away your iOS device, make sure that you've removed all of your personal information. Follow these steps to protect your data and get your device to its factory default state for the new owner:
    Back up your device.
    Sign out of iCloud:
    Tap Settings > iCloud, scroll down, and tap Sign Out. In iOS 7 or earlier, tap Delete Account.
    Tap Sign Out again, tap Delete from My iPhone, then enter your password. 
    Go to Settings > General > Reset, then tap Erase All Content and Settings.
    This will completely erase your device, including any credit or debit cards you added for Apple Pay and any photos, contacts, music, or apps. It will also turn off iCloud, iMessage, FaceTime, Game Center, and other services.
    If you're using iOS 7 or later and have Find My iPhone turned on, your Apple ID and password will be required. After you provide your password, the device will be erased and removed from your account so that the next owner can activate it.
    Your content won't be deleted from iCloud when you erase your device.
    Contact your carrier for guidance on transferring service to the new owner. If you aren't using a SIM-card with your device, you can contact them to get help transferring service to the new owner.
    When the new owner turns on the device for the first time, Setup Assistant will guide them through the setup process.
    Important: Don't manually delete contacts, calendars, reminders, documents, photo streams, or any other iCloud data while signed in to your iCloud account, or the content will also be deleted from the iCloud servers and all of your devices that are signed in to iCloud.
    Cheers,
    - Judy

  • How do I update podcast title, artist & artwork without affecting URL or subscribers?

    Is this possible? I currently produce an iTunes podcast entitled "The Drop" (https://itunes.apple.com/us/podcast/the-drop/id491023811).  The listing is currently as "The Drop" by "15 STEP & mass7." I'd like to update this listing to "The Drop Radio" by "The Drop." However, if this creates a URL change or affects subscribers, I'd simply want to change the artist to "The Drop." I'd also like to replace the artwork, and update our description.
    Just to reiterate - I would need to do all of these without affecting our URL, subscribers, and ideally the ability to search for us on iTunes and google. Again, not sure if this is possible, but any insight is much appreciated.  Our feed URL is thedropoffical.podomatic.com. 
    Also, is it possible that I can simply make these changes on my host's site? If so, again would that change or effect our current URL, subscribers, and ability to search for our show?
    Thanks!

    You can only make changes in Podomatic, which creates your podcast and feed. The feed URL is
    http://thedropoffical.podomatic.com/rss2.xml
    so it looks as if 'thedropofficial' is the login, and the feed URL won't be changed if you change the title. If Podomatic have any support you should check this with them.
    Assuming that changing the title doesn't change the URL you can change the description and title by going to wherever in Podomatic you entered them in the first place and changing them there. You can change the image but you should give the new image a different filename.
    Changes will take a couple of days to show in the Store - the image will probably take some days to change - subscribers will see the changes immediately and will not be adversely affected by them.

  • How can I adjust fonts in one window only without affecting other open windows

    I like to use a chat program and adjust font size without affecting other open windows

    thanks for quick answer but I'm looking to use what you said to affect Only one open window ( chat ). I got an answer to this 1 or 2 years ago using XP but forgot how to do it. I know typing in an url lets me inside the code to change something there choosing yes or no for that function. I forgot the url or particular function.
    thanks

  • How do I use the same css style but different attributes, Without affecting another page.

    Hey everyone,
    I am using the "NivoSlider", for my dreamweaver page but I am not sure how to tell styles that one page has one attribute and the other one will have a different attribute.
    For example: in my "about us" I have a small slideshow with its own pictures. I then put  a gallery page with its own pictures, yet, I want to make that slideshow box larger without affecting the other small slideshow.
    I am using just one Style.CSS for the slideshow.
    Anyways, is their a way to tell tell the code that one page is going to be a different width then the other?
    Thank you!

    Embedded CSS rules take priority over styles in external style sheets.   So you can add page specific rules between your document's <head> tags and after all other links to external CSS files.
    <style>
         page specific rules here....
    </style>
    Nancy O.

Maybe you are looking for

  • No longer can open a password proteced document in Pages

    Hi, I have a password protected document that I've been using for a long time.  Now I am unable to open it.  I get a message saying that my password is wrong.  One thing I did a couple of days ago that has to do with passwords:  I attempted to make a

  • SQL Loader or Materialized view

    Can we achive the following SQL Loader ? If yes can someone point me out some ling Requirement: We need to create a Reporting DB to use for Reporting and a Transactional DB will be in separate Host. Basically we need to pull data from a set of tables

  • Can't find the correct event handler

    In the following code, I create 5 canvases where each canvas behaves like a button. Each canvas contains a text field and each canvas is draggable. I want to trigger an event when the user drags off the side of the canvas, but instead it is triggered

  • How do I disable auto correct

    How do I turn off the auto-correct function in Messages, Reminders, etc?

  • I go to share menu to convert to quicktime and the menu is grayed out.  Don't know what to do.

    Working in Final Cut Pro X, I have a 17 minute clip.  It has two video paths and two audio (narration and music)  I also have some titles.  Anyway I go to the share menu to make it compatible to use in a dvd and the Share menu is completely grayed ou