What is the best cheap/free search and replace software for .xml files?

Transferring my iTunes library from PC to Mac I have reached the stage where I want to edit the .xml file from PC file paths to Mac ones - which would be the best preferrably free software to do this on?

Perhaps my comment in your other thread will help.
tt2
PS I don't know about the Mac, but Notepad++ will probably do your search & replace on the PC if you have to edit the XML.
Message was edited by: turingtest2

Similar Messages

  • What is the best combination of read and write objects to binary files ...

    Hi everyone,
    what are the best combination of read and write objects to read/write a record of customers from a binary file. I should be able to use StringTokenizer. I am bit confused with all these Stream reader and writers.
    abdul

    You are, indeed, confused:
    o StreamTokenizer works on character input, not binary input.
    o Readers and Writers in general work on character streams, not binary.
    That leaves you various input streams and output streams for reading binary data.

  • How to search and replace in an xml file using java

    Hi all,
    I am new to java and Xml Programming.
    I have to search and replace a value Suresh with some other name in the below xml file.
    Any help of code in java it is of great help,and its very urgent.
    I am using java swings for generating two text boxes and a button but i am not able to search in the xml file thru the values that are entered into these text boxes.
    Thanks in advance.
    **XML File*
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <student>
    <stud_name>Suresh</stud_name>
    <stud_age>40</stud_age>
    </student>Also i am using SAX Parser in the java program
    any help of code or any tutorials for sax parisng is very urgent please help me to resolve this problem
    Edited by: Karthik84 on Aug 19, 2008 1:45 AM
    Edited by: Karthik84 on Aug 19, 2008 3:15 AM

    Using XPath to locate the elements you are after is very easy.
    Try something like this:
    import java.io.File;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.xpath.XPath;
    import javax.xml.xpath.XPathConstants;
    import javax.xml.xpath.XPathFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class BasicXMLReplaceWithDOM4J {
         static String inputFile = "C:/student.xml";
         static String outputFile = "C:/studentRenamed.xml";
         public static void main(String[] args) throws Exception {
              // Read xml and build a DOM document
              Document doc = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder().parse(new InputSource(inputFile));
              // Use XPath to find all nodes where student is named 'Suresh'
              XPath xpath = XPathFactory.newInstance().newXPath();
              NodeList nodes = (NodeList)xpath
                   .evaluate("//stud_name[text()='Suresh']", doc, XPathConstants.NODESET);
              // Rename these nodes
              for (int idx = 0; idx < nodes.getLength(); idx++) {
                   nodes.item(idx).setTextContent("Suresh-Renamed");
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(new DOMSource(doc), new StreamResult(new File(outputFile)));
    }- Roy

  • What is the best set up (hardware and/or software) to store and access movies and music purchased through apple tv without using the computers storage space

    I have run out of space on my imac desktop, which only has 500GB of storage, due to the movies, music, etc. that have been purchased through iTunes and Apple TV.  I do not want to delete the purchases but need to free up space on my computer.  I am looking for the best scenario for moving the media to another source and still have access the media from Apple TV and possibly from ipads, macbooks, ps3, etc. within my house.  I have been looking at upgrading the Time Capsule to a larger capicity one and/or having a backup hard drive to the time capsule.  I would like to know what other people are doing to have these features without filling up their computer's hard drive.  Please advise.  If a media server other than the computer is needed please explain.  Thanks for your help.

    Can the time capsule be set up to back up both the computer and the external hard drive, therefore creating a second copy of both? 
    Can the external hard drive be set up to store all the media which can then be accessed by apple tv and other devises as if the media was on the computer OR will the media have to moved back to the computer's hard drive in order to be viewed on other devises?  Another way to look at this is can you set up iTunes to find the media stored on the external hard drive and access it without moving the media back to the computer?
    I realize this must be a problem for many people utilizing iTunes and Apple TV to purchase and view movies and listen to music but the solution does not appear to be easily determined.  I'm sure the first solution would be to just buy a computer with a larger hard drive but that is not the most economical.

  • What's the best external dvd drive (including Mac software) for an iMAC

    Would like to know.

    Assembly of External Drive Solution
    1) Take out the optical drive (DVR-112D-BK) from its box, and slide it into the tray mechanism, and align the black plastic facia (the front of the drive) with the front edge of the case so it's a flush fit, so it looks like it belongs there. There are 4 small phillips head bright, polished screws in the kit...put those aside for now, but you'll use those to fasten down the drive in the tray after everything's buttoned up
    2) Attach the 40-pin/80-wire ATA/100 cable to the drive. It *only goes on one way*, as you'll see a notch at the top that fits into the notch in the back of the drive...you can't install it but one way, the right way. BE CAREFUL to not bend those pins, and get all 40 pins aligned before you push it on. Secure it well, pushing it *all the way in*; it has to be 100% onto the pins.
    3) Attach the power Molex connector to the drive; it also only fits one way. Once again, push it in *all the way* so it "snaps" a little...you'll feel it do that, and then it's secure.
    4) Attach the 4-pin sound board pigtail to the small 4-pin slot, to the LEFT of the ATA/100 connector/cable. It can be fitted either way, but be sure to fit it with the notch on the pigtail toward the left side of the drive
    5) Make sure that everything's hooked up, and do a final alignment of the drive in the tray (it should move in the tray with a little force from your thumbs, easily), again making the front aligned with the front of the case, so it looks OEM nice.
    6) Now use those 4 phillips screws to secure the drive onto the side of the tray. Don't overtighten the screws! Just a snug torque is good.
    7) Take the silver case cover and slide it over the tray, until it's snug with the back of the tray. It should be *perfectly aligned* and fully compressed so there's no gap between the case and the tray...be careful closing the tray on the LED's power wires by the way...just tuck them inside of the tray so when you close it the thing doesn't get in the way.
    Finally) Use those two long black screws to secure the tray and the case aluminum cover through the two holes *in the back of the tray*, and again...*don't overtighten those screws!*...just a snug torque is all that's needed.
    You're done!
    Now hook it up to your Mac via FireWire, and do an Apple System Profiler report and *make sure it's supported* by your System: highlight "Disc Burning" and see if it says "Apple Shipped/Supported" in the right display window, which it will say if you're using 10.4.3 or higher. If you're running Panther 10.3.9 you have to use Patchburn.
    Basically, what PatchBurn does, is generate a new System Profile for the optical drive in question, and it does so for a huge variety of drives, not just Pioneer drives. Once the profile is in your System, simply restart your Mac, and Viola! Instantly your new drive will be available to work with all the iApps, that is iTunes, iMovie, iDVD etc, and it will be integrated with all Finder functions also. That means the drive will then function with Disk Utility's "Burn" commands in all applications, and Disk Utility itself.
    Please don't worry if you try to use your new drive combo and it doesn't work, or isn't recognized by your Mac...just do the above procedure with PatchBurn v3.x for 10.3.x, or v4.x, for 10.4.x, and all will be fine!
    http://www.patchburn.de/download.html

  • What is the best way to store and search 2D data

    Hi,
    There is a set of data (~10k records ) in 2D dimension.
    like this :
    Col 1, Col 2, Col3....
    What is the best way to store and search those records ?
    Thanks in advance
    Wilson

    Hi,
    Either userObjet[][] if you know how much data you have, and the data size is fixed, or use a list of lists. E.g. A Vector of Vectors (some will probably say that you should use an ArrayList instead, and that could be the case, but it sounds like you would want to display the data later on, and a DefaultTableModel (for JTables) uses a Vector as data holder).
    Kaj

  • What is the best & cheap backup solution for a macpro laptop?

    What is the best & cheap backup solution for a macpro laptop? easy & simple to use

    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components: 1. A Time Machine preferences panel as part of System Preferences; and, 2. A Time Machine application located in the Applications folder. It is used to manage backups and to restore backups. Time Machine requires a backup drive that is at least twice the capacity of the drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    Although you can buy a complete external drive system, you can also put one together if you are so inclined.  It's relatively easy and only requires a Phillips head screwdriver (typically.)  You can purchase hard drives separately.  This gives you an opportunity to shop for the best prices on a hard drive of your choice.  Reliable brands include Seagate, Hitachi, Western Digital, Toshiba, and Fujitsu.  You can find reviews and benchmarks on many drives at Storage Review.
    Enclosures for FireWire and USB are readily available.  You can find only FireWire enclosures, only USB enclosures, and enclosures that feature multiple ports.  I would stress getting enclosures that use the Oxford chipsets especially for Firewire drives (911, 921, 922, for example.)  You can find enclosures at places such as;
    Cool Drives
    OWC
    WiebeTech
    Firewire Direct
    California Drives
    NewEgg
    All you need do is remove a case cover, mount the hard drive in the enclosure and connect the cables, then re-attach the case cover.  Usually the only tool required is a small or medium Phillips screwdriver.

  • What is the best way to scan and sort old photos in iPhoto

    What is the best way to scan and sort old photos in iPhoto?  They do not have digital dates.

    Hey Chicago Sue,
    Once you scan them and have them on your desktop. You should use Automator and assign the common IPTC tags to the images, so that when you do import them into iPhoto, they get recorded.
    Here is an example of an action in Automator:

  • In OSX Activity Monitor, what's the difference between 'free' memory and 'inactive' memory

    In OS X Activity Monitor, what's the difference between 'free' memory and 'inactive' memory. My daughters 2Gb MacBook Pro is very slow, it probably needs more memory but there is almost 1Gb of 'inactive' memory but no 'free' memory when an application is opened.
    Thanks

    Free RAM is the one that has not been used by any application since you started up your Mac, and inactive RAM is the one that was used by an application and it is not in use anymore.
    1 GB of inactive RAM is a lot, and it may be the cause of the slowness. There are a lot of apps that allows you to turn inactive into free RAM. I use FreeMemory, but have a look at the Mac App Store.
    If you are a developer, you can do that with a command you can type into Terminal:
    sudo purge

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • How do I delete music from my iPhone and what is the best way to add and delete music?

    How do I delete music from my iPhone and what is the best was to add and delete music to the iPhone?

    See Here...
    iPhone User Guide
    and here
    http://www.apple.com/support/iphone/syncing/

  • What is the best USB powered portable 1TB hard drive for a macbook pro that allows Time machine to work, windows (thru Parallels software) and mac storage and is available in Australia?

    What is the best USB powered portable 1TB hard drive for a macbook pro that allows Time machine to work, windows (thru Parallels software) and mac storage and is available in Australia?

    I agree with teh OWC sggestion above, but why must it be USB powered? I find that far more unreliable, and the low power devices slow.
    I'd frankly get a good external enclosure and buy a bare drive.  But the OWC stuff is quite good - vastly better than some of the majors (WD being aprime example of stuff that's boderline quality and often not compatible)
    Grant

  • What is the best way to secure and harden a Macbook Pro against unwanted surveillance?

    What is the best way to secure and harden a Macbook Pro against unwanted surveillance? Tor, VPN, Little Snitch, etc. This would be for that latest version of Mavericks.

    djbabybokchoy wrote:
    Nothing specific, just speaking in general. Ex-wives, governments, bad guys...anyone really. I'm just looking to make my Mac a bit more private and secure, especially when on public networks.
    Governments and ex's will/may have recourse to the legal process (or in the case of the Gov they can choose to ignore the legal system if they feel like it) when they want to see something of yours, good luck hardening your Mac against that. The best way to avoid the possibility of snooping over public networks is to avoid them but if you can't then Kappy's suggestion will help.
    Strong passwords (everywhere) and don't use the same password in multiple locations.
    If you really want to secure your home wireless use Mac address connection authentication, do not allow unknown Mac addresses to connect. It's much stronger than a WPA password alone.

  • I have been trying to download and install a trial. What is the best browser to use and how do i do it?

    I have been trying to download and install a trial. What is the best browser to use and how do i do it? The set up and everything is on the desktop but it never seems to load anything?

    what file (name and extension) is on your desktop and what os?
    what have you done to install the desktop file and what do you see when you do that?

  • There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    Sharon-
    Good idea.
    Back up first.
    I would probably wait for the merge function of the latest version before merging. Be sure to verify every merge.
    Merge Libraries, then from within Aperture move images to referenced on external hard drives.
    HTH
    -Allen

Maybe you are looking for