Please help with how to remove attribute

Hi to all,
I am having some serious problems with removeAttribute (or more like remove anything). I want to remove an attribute from an element, but it just doesn't seem to work no matter what I do.
The following is an example of the xml:
<diffgr:diffgram xmlns:diffgr="urn:pgwc-gov-za:diffgram">
<DataInstance>
<ROW diffgr:id="3240DEAFE594482B86B3A31E77A13975" diffgr:hasChanges="inserted">
<VALUE>VALUE 1</VALUE>
</ROW>
</DataInstance>
</diffgr:diffgram>
I want to remove the diffgr:hasChanges attribute. I have searched high and low and can't find an example of how to do this. Could someone give me a quick example?
Thanks,
DayneO

You can make use of DELETEXML
scott@mydb> create table sun_xml(xmlcol xmltype);
Table created.
scott@mydb> insert into sun_xml
  2  values(xmltype('<diffgr:diffgram xmlns:diffgr="urn:pgwc-gov-za:diffgram">
  3  <DataInstance>
  4  <ROW diffgr:id="3240DEAFE594482B86B3A31E77A13975" diffgr:hasChanges="inserted">
  5  <VALUE>VALUE 1</VALUE>
  6  </ROW>
  7  </DataInstance>
  8  </diffgr:diffgram>'));
1 row created.
scott@mydb> update sun_xml
  2  set xmlcol = deletexml(xmlcol,'//DataInstance/ROW/@diffgr:hasChanges','xmlns:diffgr="urn:pgwc-gov-za:diffgram"');
1 row updated.
scott@mydb> select * from sun_xml;
XMLCOL
<diffgr:diffgram xmlns:diffgr="urn:pgwc-gov-za:diffgram">
  <DataInstance>
    <ROW diffgr:id="3240DEAFE594482B86B3A31E77A13975">
      <VALUE>VALUE 1</VALUE>
    </ROW>
  </DataInstance>
</diffgr:diffgram>

Similar Messages

  • Please help with how a filechooser works on a webpage

    I must say that I have no idea about Java.
    I am dealing with a webpage that has a "browse" button to add a file. The page seems to initiate java as java appears in my system tray when navigating to the page.
    I have coming to this page through a totally different programming language and need to deal with the windows dialog (filechooser) that appears after clicking the "browse" button.
    The thing is that after clicking the browse button - my code is stopped and only starts again after this dialog is closed.
    So is it possible that the coder of this webpage has got his java (i think applet) so that once the dialog is open that no code can be run on the computer till the dialog is closed.

    Ok thank you for your help. You have saved me a lot of time with my strange question.
    I am sadely back in the darkages as I am using VBA which does not allow me to choose threads.
    To make this question complete I am trying to automate an intranet web page. Of course there is an add file text box TYPE=File which is the cause of the problem. You cannot fill the box with something other than with SendKeys. (which only sometimes works).
    So I wanted to "click" on the browse button and then my code should get a handle on the now open dialog, but my code is paused until the dialog is closed and it appears that java is doing this.
    I assume it must be some security thing, maybe to stop exactly what I am doing. The funny thing is that the dialog is only model for the browser and my code. I can still do everything else with my computer. (I suppose the "everything else" is using another thread like you suggested.

  • Please help with how to copy CS3 from iMac (Snow Leopard) to MacBook Air (Mavericks)

    I have a 2006 Mac Desktop computer with the CS3 suite on it.  I still have the discs for the suite and would like to move it over to my macbook air.  I tried to just copy the Photoshop file, but that didn't work. Is there an easy way to migrate these files from one mac to another?  My MacBook Air does not have a DVD drive. Ideally, I would like to have these files on both computers, as I believe you can have your purchased programs on 2 computers.  Anyone have a a quick and easy way to make this happen?

    Never, ever migrate. CS installs are "Machine specific", you break licensing doing that.
    Go here: Download CS3 products and download the installer for your suite onto your new Mac.
    Gene

  • Please explain me, how to remove an usb stick or memory chip? With experiences only in pc:s, I do not find on my first apple e.g. MacBook Air a solution. Until now I have succeeded to destroy one chip full of photos and - there's no life more in the port.

    Please explain me, how to remove an usb stick or memory chip? With experiences only in pc:s, I do not find on my first apple e.g. MacBook Air a solution. Until now I have succeeded to destroy one chip full of photos and - there's no life more in the port...
    Someone told me just to remove the chip in clicking it to the trash can and voilá - it would be done. But as I did so, on the screen appeared a text which let me know, that that way had been the wrong one...
    I should have clicked Finder plus something.... which I do not now remember but which was then not found behind the Finder.
    So please would someone be so kind and tell me, where I can find explanations for the most simple functions. The manual I got does not include a clue.
    Thank you!

    First make sure that no application is using or has open any files on the disk. Then:
    Click and drag the disk icon on the desktop to the trash. Wait for the system to recognize the action, and the icon should disappear from the desktop. It is then safe to remove the device.
    Alternatively, you can secondary click on the disk icon, and then primary click "Eject (name of disk)". Wait for the icon to disappear off the desktop, and then it is safe to remove the drive.
    Here is a detailed help document on the subject.
    http://docs.info.apple.com/article.html?path=Mac/10.7/en/mchlp1056.html

  • [ETL]Could you please help with a problem accessing UML stereotype attributes ?

    Hi all,
    Could you please help with a problem accessing UML stereotype attributes and their values ?
    Here is the description :
    -I created a UML model with Papyrus tool and I applied MARTE profile to this UML model.
    -Then, I applied <<PaStep>> stereotype to an AcceptEventAction ( which is one of the element that I created in this model ), and set the extOpDemand property of the stereotype to 2.7 with Papyrus.
    -Now In the ETL file, I can find the stereotype property of extOpDemand as follows :
    s.attribute.selectOne(a|a.name="extOpDemand") , where s is a variable of type Stereotype.
    -However I can't access the value 2.7 of the extOpDemand attribute of the <<PaStep>> Stereotype. How do I do that ?
    Please help
    Thank you

    Hi Dimitris,
    Thank you , a minimal example is provided now.
    Version of the Epsilon that I am using is : ( Epsilon Core 1.2.0.201408251031 org.eclipse.epsilon.core.feature.feature.group Eclipse.org)
    Instructions for reproducing the problem :
    1-Run the uml2etl.etl transformation with the supplied launch configuration.
    2-Open lqn.model.
    There are two folders inside MinimalExample folder, the one which is called MinimalExample has 4 files, model.uml , lqn.model, uml2lqn.etl and MinimalExampleTransformation.launch.
    The other folder which is LQN has four files. (.project),LQN.emf,LQN.ecore and untitled.model which is an example model conforming to the LQN metamodel to see how the model looks like.
    Thank you
    Mana

  • I have a problem with iphone4 I bought a used and unlocked iphone4 old apple id because the first owner dies please help me how to activate iphone4 I unlocked with icloud

    I have a problem with iphone4
    I bought a used and unlocked iphone4
    old apple id because the first owner dies
    please help me how to activate iphone4
    I unlocked with icloud

    fherly nur arief wrote:
    I unlocked with icloud
    If you had already removed the device from 'Find My iPhone' in iCloud, then you jus tneed to powercycle the device in order to activate it.
    Source: http://support.apple.com/kb/TS4515
    "After the device is removed from the previous owner’s account, turn the device off by pressing and holding the Sleep/Wake button located on the top-right side of the device. Then restart your device and proceed with device setup as you would normally."
    If it has not been removed, then the activation lock is still active.
    If the previous owner cannot remove the device from their account there is nothing you can do unless the place you purchased it from will give you a refund.
    Activation Lock: http://support.apple.com/kb/ht5818
    What if I purchase a device that is still linked to the previous owner's account?
    Contact the previous owner as soon as possible and ask them to erase the device and remove it from their account. For complete instructions, read how to remove a device from a previous owner's account.
    How do I check for Activation Lock before purchasing a used device?
    When purchasing an iPhone, iPad, or iPod touch from someone other than Apple or an authorized Apple reseller, it is up to you to ensure that the device has been erased and is no longer linked to the previous owner’s account.
    Follow each of these steps to make sure that you can use the device you purchase:
    Turn the device on and slide to unlock.If the passcode lock screen or the home screen appears, the device has not been erased. Ask the seller to completely erase the device by going to Settings > General > Reset > Erase All Content and Settings. Do not take ownership of any used iPhone, iPad, or iPod touch until it has been erased.
    Begin the device setup process.After choosing a language, choosing a country, and connecting to a network, the device will begin activation. If you are asked for the previous owner’s Apple ID and password, the device is still linked to their account. Hand the device back to the seller and ask them to enter their password. If the previous owner is not present, they can remove the device from their account by signing in to icloud.com/find. Do not take ownership of any used iPhone, iPad, or iPod touch until it has been removed from the previous owner’s account.
    You will know that a device is ready for you to use when you are asked to “Set up your iPhone", “Set up your iPad", or “Set up your iPod” during the device setup process.

  • TS3694 i think itunes  has removed my iphone software. because now not showing home screen. when i tried to restore my phone there generated an error no is 1015. please help me how can i recover my iphone again?

    i think itunes  has removed my iphone software. because now not showing home screen. when i tried to restore my phone there generated an error no is 1015. please help me how can i recover my iphone again?

    From the article which you posted your question from:
    Errors related to downgrading iOS
    The required resource cannot be found: This alert message occurs when your device has a newer version of iOS than what is available in iTunes. When troubleshooting a device that presents this alert message, go to Settings > General > About and check the version of iOS on the device. If it is newer than the latest released iOS version, the device may have a prerelease developer version of iOS installed.   Installing an older version of iOS over a newer version is not supported.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore. Please help with proper steps, if any.

    How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore.
    On the new computer, I am getting a message that my all purchases would be deleted if I sync it with new iTunes library.
    Please help with proper steps, if any.

    Also see... these 2 Links...
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141

  • Please help me , how to know if my ipod is unloked or not to , I live in Brazil and I can't sync  it with  itunes, please help me , how to know if my ipod is unloked or not to , I live in Brazil and I can't sync  it with  itunes

    please, help me , how to know if my ipod is unloked or not , I live in Brazil and I can't sync my ipod with  the itunes thanks.

    What do you mean, "is it unlocked"? If your iPod has a screen lock set, it will be obvious from the iPod's screen. For issues with the iPod not appearing in iTunes, start which these troubleshooting steps:
    http://support.apple.com/kb/TS1538
    Regards.

  • Please help with "You can't open the application NovamediaDiskSupressor because PowerPC applications are no longer supported." I have seen other responses on this but am not a techie and would not know how to start with that solution.

    Please help with the message I am receving on startup ""You can't open the application NovamediaDiskSupressor because PowerPC applications are no longer supported."
    I have read some of the replies in the Apple Support Communities, but as I am no techie, I would have no idea how I would implement that solution.
    Please help with what I need to type, how, where, etc.
    Many thanks
    AppleSueIn HunterCreek

    I am afraid there is no solution.
    PowerPC refers to the processing chip used by Apple before they transferred to Intel chips. They are very different, and applications written only for PPC Macs cannot work on a Mac running Lion.
    You could contact the developers to see if they have an updated version in the pipeline.

  • I am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    i am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    You do not need the Setup Assistant; in fact, you do not need any software on an external hard drive. I have two LaCie's; I erased the drive as soon as I plugged it in. You will need to format it anyway because most hard drives come Windows formatted. So, if you only want to use it with the Mac, highlight it in Disk Utility and choose Mac OS Extended (Journaled) as the format and the GUID Partition scheme under Options. While doing that, it will erase the drive (and get rid of the LaCie software) - once finished, your drive is ready to use for Time Machine or any other backup plans you have for it.

  • In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    I think the warning is very clear.
    What warning? Where do you say that this plan you suggest will lose at least some, and possibly a whole lot of metadata, plus  the original files of edited photos. This is significant dataloss. And you should warn people that this is the case.
    While your metadata and originals may not be important to you, that is not necessarily the case for other users.
    Fourthly, and last, cleaning the iPhoto library should be done at least once per year
    This is nonsense. The iPhoto Library has no need of "cleaning" and certainly not in any way that trashes a whole lot of data.
    I'm very impressed that you assess the application based on the sound of the name. It's not a common way to review applications, but I'm sure it has some merit.
    FWIW it has been recommended on this - and other - sites for many years and has proven safe and effective.
    Regards
    TD

  • I've installed windows 7 with the help of bootcamp on my macbook pro 2011. Please help me how to install mac drivers for windows7 64 bit???

    I've installed windows 7 with the help of bootcamp on my macbook pro 2011.
    Please help me how to install mac drivers for windows7 64 bit???

    You either download drivers from within Boot Camp Assistant and save to USB FAT disk, or you insert and use 10.6.x OS X DVD when in Windows and install and run the SETUP from there.
    General Help:
    Boot Camp 4.0, OS X Lion: Frequently asked question
    http://support.apple.com/kb/HT4818
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
    create a Windows support software (drivers) CD or USB storage media
    http://support.apple.com/kb/HT4407
    Installation Guide   Instructions for all features and settings.
    Boot Camp 4.0 FAQ   Get answers to commonly asked Boot Camp questions.
    Windows 7 FAQ   Answers to commonly asked Windows 7 questions.
    - support articles and tips, how to.
    http://www.apple.com/support/bootcamp/
    Macs that work with 64-bit editions of Microsoft Windows Vista and Windows 7
    http://support.apple.com/kb/HT1846
    Step 4: Install the Boot Camp Drivers for Windows
    After installing Windows, install Mac-specific drivers and other software for Windows using your Mac OS X installation disc.  The Mac OS X disc installs drivers to support Mac components, including AirPort,built-in iSight camera, the Apple Remote, the trackpad on a portable Mac, and thefunction keys on an Apple keyboard. 
    The Mac OS X disc also installs the Boot Camp control panel for Windows and theApple Boot Camp system tray item.
    To install the Boot Camp drivers:
    1 Eject the Windows installation disc.
    2 Insert the Mac OS X disc.  If the installer doesn’t start automatically, browse the disc using Windows Explorerand double-click the setup.exe file in the Boot Camp directory.
    3 Follow the onscreen instructions.
    If a message appears that says the software you’re installing has not passed Windows  Logo testing, click Continue Anyway.
    Windows that appear only briefly during the installation don’t require your input.
    If nothing appears to be happening, there may be a hidden window that you mustrespond to. Check the taskbar and look behind open windows.
    Important: Do not click the Cancel button in any of the installer dialogs.
    4 After your computer restarts, follow the instructions in the Found New Hardware  Wizard to update your software drivers (Windows XP only).
    5 Follow the instructions for any other wizards that appear.
    6 Check for updated Boot Camp drivers by using Apple Software Update or going to www.apple.com/support/bootcamp.
      If You Have Problems Installing the Device Drivers 
    If it appears that the Boot Camp drivers weren’t successfully installed, try repairing them.
    To repair Boot Camp drivers:
    1 Start up your computer in Windows.
    2 Insert your Mac OS X installation disc.
    3 If the installer doesn’t start automatically, browse the disc using Windows Explorerand double-click the setup.exe file in the Boot Camp directory.
    4 Click Repair and follow the onscreen instructions.
    If a message appears that says the software you’re installing has not passed Windows  Logo testing, click Continue Anyway. 
    If you need to reinstall specific drivers, you can install one driver at a time. For example,if your built-in iSight camera isn’t working, you can reinstall just the iSight driver.
    Individual drivers are in the Drivers folder on the Mac OS X installation disc.

  • How to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently, how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently

    how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently, how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently

    I did this a few weeks ago to be sure it was going to work for a young person I was giving my ipod to.  Then I reset the information for her and now it will not load.  Very sad.  She is so talented and she really needs this.   Anyone know?

  • Why can't i downgrade to mavericks? i have got some problem with yosmite. i would like to downgrade to mavericks.please help me how to get it ? thanks

    why can't i downgrade to mavericks? i have got some problem with yosmite. i would like to downgrade to mavericks.please help me how to get it ? thanks

    Hi here are a couple of links you may find useful, the first is if you have made a time machine backup, the second if you have not.
    http://osxdaily.com/2014/10/22/downgrade-os-x-yosemite-to-mavericks/
    http://www.macworld.co.uk/how-to/mac-software/revert-back-mavericks-from-yosemit e-3581872/

Maybe you are looking for

  • I want to purchase iMac i7 and want to know if my pc based LG dvd player (usb) is compatible ? also my external Hard Drive (usb) is it compatible with iMac?

    wiil my PC extermnal dvd player and external hard drive be compatible with iMac ore do I have to by all new stuff? Can data be recovered from Hard drive and transfered to new iMac simply? Thank you for your time and consioderation, depending on this

  • Payment File generation

    Hi All, I am generating .txt file for payment details. The file will be directly uploaded on BNP web portal. This is to avoid cheque printing through SAP. The format of the file is as follows. PCC             123464                            0900910

  • Bug - SQL Developer 3.0.04 SVN Merge

    Hello. I've found a bug when trying to merge files. The problem occurred when there is a conflict on file content and an update on properties. The SVN plugin prepares merge (diff) files but the GUI shows that the file is MERGED instead of CONFLICTED,

  • Suppressing a Subreport Prompt On Load

    Post Author: MikeSgroi CA Forum: General Hi All, I have a summary report. I've added an on demand subreport to let the users export the detail. In the subreport, using a parameter, the users can select which columns to display. The problem is that wh

  • Removing page borders when printing

    I seem to be stuck. I'm attempting to print a 4 page spreadsheet in numbers, but it keeps putting about a 1 inch page border around the pages so each page runs on to the next. I cannot find a way to adjust the size of the border in Numbers. Is this e