Can i do this with jdom

Hi
i need to open an xml file, then modify it and then put its content into a string without modifying the physical file.
Can i do this with jdom?
I know that i can use some methods to build an object from a physical file, and also modify it, but then can i get the full content and put it into a string?
Thanks

Yep, you can do that with JDOM. U can use org.jdom.output.XMLOutputter to put the modified contents into a String. (Using a StringWriter)

Similar Messages

  • Urgent :::::.i WISH TO DO THIS WITH JDOM and JAVA .

    file A.XML
    <XML>
    <TP>
    <FF>
    </FF>
    </TP>
    </XML>
    file B.XML
    <XML>
    <TP>
    <GG>
    </GG>
    </TP>
    </XML>
    I WANT TO PASTE node GG in b.xml to a.xml like this
    <XML>
    <TP>
    <FF>
    <GG>
    </GG>
    </FF>
    </TP>
    </XML>
    i WISH TO DO THIS WITH JDOM and JAVA .
    Please let me know how to do this ....
    i dont want to use XSL OR XSLT ...
    i am free for discussions...pls help me
    ciao

    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I have my iTunes library on an external HD because it is too big for my iMAC 500GB HD. I want to backup my external HD. Can I do this with any Apple cloud product or should I look elsewhere? Also is it worth just buying another external HD to back up

    I have my iTunes library on an external HD because it is too big for my iMAC 500GB HD. However, it is not backed up, so I need a solution to backup my external HD. Can I do this with any Apple cloud product or should I look elsewhere for cloud products? Will it be cheaper/easier just to buy another external HD to back up my existing external HD? Thanks

    I don't know if this is me adding files to iTunes when the external wasn't connected
    it is.
    is it OK to just keep deleting that library on the Air?
    i wouldn't - at least not until i
    mount the external
    point iTunes media folder location back to the external via preferences > advanced
    consolidate my library via file > library > organize library
    The ntfs hasn't seem to be causing any problems, but I've always wanted to know.
    in order for your Mac to write to NTFS drives, it needs some help by installing e.g. the NTFS 3G driver. apparently that or something similar is installed on your Mac already. preferably, it would be formatted for Mac but then windows machines would need to have e.g. MacDrive installed to recognize the drive.

  • How do you set up multiple users? Netscape use to let me choose which profile to start. Can I do this with Firefox and can I have email linked to each individual user/login? How?

    Netscape use to let me choose and create new profiles. after clicking on the icon for netscape i was prompted for which user profile i wanted. can i do this with firefox? also, each user profile was linked with its respective email account. can i do this through firefox as well? I need help. i have tried setting up firefox before and since i couldn't accomplish this i had given up but netscape is so old and most sites cause it to crash, i need a solution. i have 2 main profiles and 2 different email addresses. any advice or help, even not firefox related would be great

    Firefox doesn't have the same type of interface for the Profile Manager that Netscape did. You might want to look at SeaMonkey ''(which uses the same Mozilla Gecko code as Firefox has)''.
    http://www.seamonkey-project.org/

  • Can I do this with .Mac?

    I work at a nonprofit organization with four offices. I would like to use photocasting to make it easy for the other offices to send me photos. But, we only have two .Mac accounts. I'm using one. One computer in each of the other three offices is set up with the other .Mac account.
    I started by setting two of them up on iPhoto and one was able to publish a photocast. I was able to subscribe to it. But the second one didn't work so well. And then both stopped working. I would get a message saying that the photocast did not exist on that .mac account. However when I searched for them in the iDisk they were actually there.
    I'm basically wondering if the problem is just that I can't do this with one .Mac account or if I should be looking for some other problem. If anyone has an idea about this I would appreciate the advice.

    mchavo:
    Set up your Public folder with a user name and password and have the other offices access that folder on your iDisk to upload their photos in folders with appropriate titles to let you know where they came from and the date. The senders could archive the folder of photos, zip them, and send. Might make sending a bit quicker.
    Have you tried emailing or are there too many and too big?
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Hi, Unfortunately my Laptop has died (which had my iTunes on it). I want to ensure my music on my iPhone 5 and my iPad Air are backed up. Also, I want to sort my music in the way I used to with iTunes. How can I do this with just these two devices?

    Hi, Unfortunately my Laptop has died (which had my iTunes on it). I want to ensure my music on my iPhone 5 and my iPad Air are backed up. Also, I want to sort my music in the way I used to with iTunes. How can I do this with just these two devices, i.e. NO Computer? Can the iCloud help? Why can't I download iTunes (i.e. my library as I saw it on the computer) to these devices? Thanks to anyone who can help me here.

    You can change the email address of one's appleID...
    I'd recommend changing moms email to yours to get a good backup on the Mac
    Then switch mom's back to hers
    Then change your account to the same email you used.
    I've done something similar when I needed to update my Apple account (one ID changing email addresses and phone)

  • Can I partition my hard drive to hold Windows 8 (Beta), instead of Windows 7, and can I do this with an external CD drive?

    I have a late 2008 Macbook Pro with Mac OS X 10.8 Mountain Lion installed, but my CD drive inside my computer is damaged*, and it's far cheaper to buy an external CD drive than to repair it entirely. Before I do either, I would like some grasp of whether or not it's worth my time and money, as I've yet to order the external drive or make a genius bar appointment.
    Also, the reason I'm choosing Windows 8 (Beta) is because it's free.
    *I dropped my computer once two years ago. I haven't even used my CD drive until recently when trying to install Windows 8. I assume the drop was the issue. I've used compressed air to remove dirt/dust as well as resetting the PRAM multiple times and nothing seems to work, but I'm not worried about it.
    Thank you.

    Can I partition my hard drive to hold Windows 8 (Beta), instead of Windows 7, and can I do this with an external CD drive?
    No and No.
    1: Apple only supports Windows 7 at this time in BootCamp (direct install into a bootable partition) because Win 8 is in Beta and no Mac hardware drivers are available yet from Apple for Windows 8.
    2: You can't install Windows from a external cd drive into BootCamp, it has to be a internal one far as I know, perhaps a USB will work I don't know.
    Yes:
    1: You can download and install Windows 8 Beta into a the free virtual machine software called VirtualBox, which Windows 8 will run in a window in OS X. This is better as it's still in Beta and Windows Beta releases will expire. Plus Windows 8 is a pain in the behind and you will want to be able to have VirtualBox or OS X be able to regain control over the computer.
    http://osxdaily.com/2012/03/03/try-windows-8-consumer-preview-virtualbox/
    Windows in BootCamp or Virtual Machine?

  • My iPhoto icon has a cross over it, when i open it, it You have "iPhoto" 9.2.1. you can't use this with this version of OSX? it used to work ?what's gone wrong?

    my iPhoto icon has a cross over it, when i open it, it You have “iPhoto” 9.2.1. you can't use this with this version of OSX? it used to work ?what's gone wrong?

    iPhoto 9.2.3 is incompatible with MacOS 10.9.3 Mavericks. If you are running Mavericks on your system you need to update iPhoto to 9.5.1. Only, the problem is, that this version is no longer available at the App Store.
    The easiest way to get a compatible iPhoto version in that case would be to upgrade to Yosemite, MacOS X 10.10, and then download the most recent iPhoto version from the AppStore, iiPhoto 9.6, like LarryHN suggested.
    If you cannot download iPhoto after upgrading to iPhoto 9.6 post back.

  • I want to communicate with a hearing impaired partner who has bluetooth compatible hearing aids.  Can I do this with an iPhone?

    I want to communicate with a hearing impaired partner who wears bluetooth enabled hearing aids.
    Ideally, I would use an bluetooth mic via an iPhone that would work directly with her hearing aids.  This would be done primarily in home and work environments.  
    Can I do this with an iPhone?  If so, how?
    Thanks,
    Bob

    troubleshooting messae http://support.apple.com/kb/ts2755

  • How can I put a face on another body and make it look real? Can I do this with photoshop elements 13.

    How can I put another face on another body that I find on the web? Can I do this with photoshop elements 13? And If so can I make it look real?

    See this link:
    Google

  • I have a Powerbook G4. I want to use an iMac desktop, the model that is shaped llike a lamp, as an external monitor. Can I do this with firewire or USB cable or do I have to have a different cable?

    I have a Powerbook G4. I want to use an iMac desktop, the model that is shaped llike a lamp, as an external monitor. Can I do this with firewire or USB cable or do I have to have a different cable?

    You need a network connection and a product such as ScreenRecycler. All such products require a bootable OS on the iMac.
    (58362)

  • I have a new MacBook Air with Yosemite (no CD/DVD capacity). I want to install Photoshop Elements 6. Can I do this with the serial number? If pse 6 is not compatible, can I upgrade to pse 7. I do not need pse 12 or 13.

    I have a new MacBook Air with Yosemite (no CD/DVD capacity). I want to install Photoshop Elements 6. Can I do this with the serial number? If pse 6 is not compatible, can I upgrade to pse 7. I do not need pse 12 or 13

    I cannot answer regarding compatibility, but there is no download available for PSE6 if you would need one for this.  You might be able to copy the installation files from a disk to some other removable media that the machine accepts.  Upgrading to PSE7 would not be possible mainly because Adobe does not sell older versions of their software.

  • I need to change a photo into a video file in order to post on youtube. How can I do this with my mac?

    I need to change a photo into a video file in order to post in youtube. How can I do this with my mac mini?

    When I go to import, the choices are :
    movies
    camera archive
    imovie for IOS
    imovie for HD
    It refuses to import a photo with any of these choices, which is located on the desktop or in a folder. It's a regular .jpg
    There are instructions to drag it. I put it there, and it bounces right back. The photo will not stay.
    I just need this one picture to go on so I can post a meditation on youtube.  It doesn't come from a camera.

  • I have a Yamaha FC7 foot pedal and am trying to use it as a whammy bar type controller.  Can I do this with anything in Mainstage?  I also have Line 6 Pod farm 2 - anything in there?

    I have a Yamaha FC7 foot pedal and am trying to use it as a whammy bar type controller.  Can I do this with anything in Mainstage?  I also have Line 6 Pod farm 2 - anything in there?
    The foot pedal also seems to have an on/off switch that activates when it's depressed all the way.  How do I set that up in Mainstage?  Can I cycle between and effect and a volume pedal, for example?
    Mainstage version is 2.1.3
    Thanks for all help given.

    Hi
    Bruno Filipe wrote:
    Thanks for the help but please don´t duplicate the answers. I´ve explain that to Chamie7
    Noted, except that the OP clearly did not feel that your answer was helpful
    Chamie7 wrote:
    Sorry, no help there.  Any guitar players know what I mean?
    and
    Bruno Filipe wrote:
    You can use a keyboard or other controller (with jack like sustain) and then assign controller (normally 64) to what you want Mainstage to do.
    This is unlikely to work if you plug an "Expression Pedal" such as an FC7 into a "Sustain Pedal" socket using MIDI CC64, which usually operates as a switch rather than a continuously variable value.
    If I understood the OP's request correctly, the OP wanted to use the FC7 as a "Whammy Pedal", which does a PitchBend 'dive' effect (amongst other things)
    http://en.wikipedia.org/wiki/DigiTech_Whammy
    CCT

  • I have a router for my PC. Can I use this with a Macbook or do I have to buy added hardware?

    I have a router for my PC. Can I use this with a Macbook or do I need to buy hardware?

    Your answer confused me for a second (a generic router doesn't need an adaptor for Macs to use) and then it dawned on me you were referring to the enet adaptor the MBA requires

Maybe you are looking for

  • How can I save intermediate results?

    I am using FOR loops to count the rise time, fall time, higfh time and low time of a square wave. Is there any convenient way to store the rise time when the high time starts, store the high time when the fall time starts, etc. such that the correct

  • Https with tomcat-page cannot be displayed error

    Hi, when trying to connect using https browser displays page cannot be displayed message I've created a self-signed certificate using the keytool program. I've uncommented the connecter element for port 8443 in the server.xml file. I'm using jdk1.6 a

  • How to configure cancel invoices status to be cleared automatically

    Hi Sd gurus, created sales order,delivery and invoice and i have canceled the invoice. The document flow is like Sales order - completed Delivery- Being processed invoice- completed accounting document-not cleared. cancel invoice(s1)-completed. accou

  • HCM Processes & Forms - automatically UPPERCASE form fields

    Hi gurus! I have a requirement to do an automatically translation to uppercase form field values. Is there any 'standard' solution to do something like that? If no, should to do something in backend? KR

  • Help! iPad 2 showing NEF/RAW files as 'local disk' ?!

    Hi all. I really hope someone can help as this is doing my nut in! I've always used the camera connection kit with my iPad 2 and Nikon D700 before with no problems. I can transfer the RAW/NEF files from my camera to my iPad 2, and then when I get hom