I'm searching for an online-Tutorial for JAXP

Hi folks!
I'll work the first time with the JAXP-package and don't know how to handle it. Is there any useful tutorial in the web? I only want to use a parser to read and write xml-files in/from a JTextArea.
Which parser is the best one for this kind of work? DOM, Xerces or Xalan?
Thanks for your answers and greetings from Hamburg

A very good tutorial of JAXP is available at
http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/
hope this helps.
regards,
Abhishek.

Similar Messages

  • I just bought a MBA and I need to move my photos and itunes to an external hard drive (from my old MacBook Pro) because they won't fit on the Air.  I got the photos moved fine and I followed an online tutorial to move the necessary files for itunes, but i

    I just bought a MBA and I need to move my photos and itunes to an external hard drive (from my old MacBook Pro) because they won't fit on the Air.  I got the photos moved fine and I followed an online tutorial to move the necessary files for itunes, but it didn't work.  The files copied fine, but when I tell iTunes on the Air to look at the external drive for the library, it doesn't find anything.  What I copied was the entire iTunes Media folder.  So, how do I move the necessary iTunes files from my old Pro to a external drive so I can access them from my new Air?  Whew!

    iTunes- How to move the library to an EHD
    After you move the library you need to open iTunes by first depressing the OPTION key then launching iTunes. You will be given a choice of which library to use. This can then be made a permanent change, if you wish, in the Advanced section of iTunes preferences.

  • I just highlighted and changed the artist name of about a hundred songs in my library.  This was an accident and I want to change them back. I can't "undo" or search for artists' names online. Any way to fix this? They are still highlighted.

    These were all songs I had ripped from old CDs, lot of which, I no longer have. I can't remember that artists' names for all these songs.  They are all "oldies" from the fifties and I just accidentally changed the artist for all them to Fats Domino. I'd had them all highlighted because I had done a batch change of their genre to Oldies. I couldn't tell that they were all still highlighted after that change because I could only see two of the songs at the time that I changed the artist name.  Is there any possible way to undo this?  All the tracks are still highlighted from the naming operation. I can't search for the artists' names online because I didn't purchase them from iTunes.  Any suggestions would be greatly appreciated.  Thanks!

    I found one other way to do it.  I just deleted them all out of my iTunes library. Now I can re-import them from Window's My Music file with the original artists' names intact.
    Thanks for your help, Matt!

  • Recently opening an HTML file on my computer makes firefox attempt a search for the entire file name in the search engine online, how to do i correct that?

    when opening an HTML file recently my Firefox automatically opens up a yahoo search screen and the file, the entire file name and route for the file is searched for online. I don't even use Yahoo Search i use Google but that doesn't mater have to open the file manually with searching it on on the open screen to read it because it's trying to search for it online instead of reading it from where i clicked on it.
    I.E.
    file:///F:/Reading/II.html
    would try to search
    https://us.search.yahoo.com/yhs/search?hspart=aztec&hsimp=yhs-default&type=derr_100_476&p=file%3A%2F%2F%2FF%3A%2FReading%2Fhtml&rnd=737753354&param1=sid%3D476%3Aaid%3D100%3Aver%3D15005%3Atm%3D264%3Asrc%3Dderr%3Alng%3Den%3Aitype%3Da%3Auip%3D1124173343
    I have no idea what the
    &rnd=737753354&param1=sid%3D476%3Aaid%3D100%3Aver%3D15005%3Atm%3D264%3Asrc%3Dderr%3Alng%3Den%3Aitype%3Da%3Auip%3D1124173343
    is for but it's never done this before.

    Please read this article about restoring bookmarks:
    http://kb.mozillazine.org/Lost_bookmarks
    As far as your passwords are concerned, I don't think there's anything you can do. But for the future, you can use the following add-ons to avoid any future loss:
    https://addons.mozilla.org/en-US/firefox/addon/2848/
    or
    http://www.xmarks.com/
    Both are good.
    And a simple way to import your bookmarks (since you already saved it on your desktop as html) is:
    Bookmarks / Organized Bookmarks / Import and Export
    Good luck.

  • Looking for a comprehensive online tutorial or book

    Hello Guys!
    I am looking for a comprehensive online tutorial or book that would contain all steps involving java web application development.
    For example, it would be cool if it would contain requirement definition, design, implementation, etc. and how all that is applied to java web application development. Also, it would be neat if it would provide templates regarding diagrams for each stage of the development.
    I thank you guys in advence for your help,
    John

    Thanks benubach!
    There appears to be a lot of information but it seems
    that most of it is simply a Java tutorial. Maybe I
    simply can't quite find the particular doc on that
    page.
    I am interested in a web program development guide
    including how each of the steps (requirement
    definition, design, implementation, etc.) in the
    process are created. It also be nice if the info
    would focus on using java/jsp in the implementation
    of each of steps in the process.
    Thanks,
    JohnI doubt such a document exists. I was hoping to find something similar that didn't resolve around a trivial case, but gave up after a while. This seems to be something that is learned more with working with others as well as reading many little things and building on each other.

  • Two questions:  how do Skype and iChat compare for group video?  quality, reliability, cost, etc are important.  2) Is my MobileMe ID what I need to use in the window in making an iChat buddy?  It only says AIM above the window, online tutorial differs.

    Two questions:  1) How do Skype and iChat compare for group video?  Quality, reliability, cost, etc are important.  2) Is my MobileMe ID what I need to input in the window in making an iChat buddy?  It only says AIM above the window, online tutorial differs, saying MobileMe, AIM, GoogleTalk (Jabber) all work. Thnx

    Hi,
    IChat uses better Video Compression than Skype does.
    On a top flight Mac you can send a 640 X 480 pixel frame up to 30 frames a sec.
    Skype can't match this.
    iChat in Video is Peer to Peer. (you can actually Log out of the Buddy list)
    Skype seems to borrow something from everyone's bandwidth to make connections.
    What do you mean by Business account Tracking ?
    iChat Adds (or can add) the First Name, Last Name of your Buddies and create an Address Book Entry
    Whether you mark those cards connected with a  company is up to you.
    (I have heard of issues with earlier version of iChat and the Address Book that "saw" the Company Name as the part of the Name and linking several Screen Names to the one name
    Audio on a Mac using Skype tend to be the same as the streaming needs are less.
    However you have to rely on any PCs audio abilities from PCs which may not be to the same standard.
    Mac to PCs in iChat and AIM can be difficult though.  (It should work but it rarely as simple as Plug and go)
    Skype may suit your needs better on ocassions.
    9:11 PM      Thursday; May 5, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
    , Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Need a help for finding best online tutorial site

    Could you please post some best PLSQL online tutorial site .
    Advance thanks to all of you.

    Please check this site
    Always good to refer oracle official site for reference.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/toc.htm
    ~Lokanath

  • Is there an online tutorial for IPhone 4?

    Is there an online tutorial for using the IPhone 4?  I just got one and could use some help to get started with it.

    http://www.apple.com/support/iphone/

  • Best CD or online tutorial for newbie

    Hello DW8 experts:
    Can you recommend a good cd-based or online tutorial for DW8?
    Thanks so much.
    David

    Hello there,
    If you are new to Dreamweaver 8, you might want to take a
    look at
    Captivate simulations I created for the Dreamweaver developer
    center
    http://www.adobe.com/devnet/dreamweaver/articles/dw_getting_started.html
    CD-wise I would suggest you take a look the Dreamweaver 8
    Essential
    Training from Lynda.com
    http://movielibrary.lynda.com/html/modPage.asp?ID=172
    Regards,
    Mark
    Mark Fletcher
    WebAssist.com
    muskrat897 wrote:
    > Hello DW8 experts:
    > Can you recommend a good cd-based or online tutorial for
    DW8? Thanks so much.
    > David

  • Searching for simple bluetooth to bluetooth messages tutorial or example

    Hi,
    I want to send messages from 1 mobile phone to another one using Bluetooth but I can't find any simple tutorial or example with this type of bluetooth use.
    So i'm asking for your help :) any simple tutorial/example for bluetooth messages between devices?
    Thanks in advance

    import java.util.Vector;
    import java.io.IOException;
    import javax.microedition.io.Connector;
    import javax.microedition.io.ConnectionNotFoundException;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.TextField;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.ChoiceGroup;
    import javax.microedition.lcdui.Choice;
    import javax.bluetooth.LocalDevice;
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.DiscoveryAgent;
    import javax.bluetooth.DataElement;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.UUID;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.ServiceRecord;
    import javax.bluetooth.L2CAPConnectionNotifier;
    import javax.bluetooth.L2CAPConnection;
    import javax.bluetooth.BluetoothStateException;
    import javax.bluetooth.BluetoothConnectionException;
    import javax.bluetooth.ServiceRegistrationException;
    public class ChatController extends MIDlet implements CommandListener
    private Display display = null;
    private Form mainForm = null;
    private ChoiceGroup devices = null;
    private TextField inTxt = null;
    private TextField outTxt = null;
    private Command exit = null;
    private Command start = null;
    private Command connect = null;
    private Command send = null;
    private Command select = null;
    private StringItem status = null;
    private LocalDevice local = null;
    private RemoteDevice rDevices[];
    private ServiceRecord service = null;
    private DiscoveryAgent agent = null;
    private L2CAPConnectionNotifier notifier;
    private L2CAPConnection connection = null;
    private static final String UUID_STRING = "112233445566778899AABBCCDDEEFF";
    private boolean running = false;
    public ChatController()
    super();
    display = Display.getDisplay(this);
         mainForm = new Form("CHAT");
         devices = new ChoiceGroup(null,Choice.EXCLUSIVE);
         inTxt = new TextField("incoming msg:","",256,TextField.ANY);
         outTxt = new TextField("outgoing msg:","",256,TextField.ANY);
         exit = new Command("EXIT",Command.EXIT,1);
         start = new Command("START",Command.SCREEN,2);
         connect = new Command("CONNECT",Command.SCREEN,2);
         send = new Command("SEND",Command.SCREEN,2);
         select = new Command("SELECT",Command.SCREEN,2);
         status = new StringItem("status : ",null);
         mainForm.append(status);
         mainForm.addCommand(exit);
         mainForm.setCommandListener(this);
    protected void startApp() throws MIDletStateChangeException
    running = true;
         mainForm.addCommand(start);
    mainForm.addCommand(connect);
         display.setCurrent(mainForm);
    try
    local = LocalDevice.getLocalDevice();
         agent = local.getDiscoveryAgent();
    catch(BluetoothStateException bse)
    status.setText("BluetoothStateException unable to start:"+bse.getMessage());
              try
              Thread.sleep(1000);     
              catch(InterruptedException ie)
    notifyDestroyed();
    protected void pauseApp()
    running = false;
         releaseResources();
    protected void destroyApp(boolean uncond) throws MIDletStateChangeException
    running = false;
         releaseResources();
    public void commandAction(Command cmd,Displayable disp)
    if(cmd==exit)
         running = false;
              releaseResources();
              notifyDestroyed();
    else if(cmd==start)
         new Thread()
                   public void run()
                        startServer();
                   }.start();
    else if(cmd==connect)
              status.setText("searching for devices...");
                        mainForm.removeCommand(connect);
                        mainForm.removeCommand(start);
                        mainForm.append(devices);
                        DeviceDiscoverer discoverer = new DeviceDiscoverer(ChatController.this);
                        try
                             agent.startInquiry(DiscoveryAgent.GIAC,discoverer);
                        catch(IllegalArgumentException iae)
    status.setText("BluetoothStateException :"+iae.getMessage());
                        catch(NullPointerException npe)
    status.setText("BluetoothStateException :"+npe.getMessage());
                        catch(BluetoothStateException bse1)
    status.setText("BluetoothStateException :"+bse1.getMessage());
    else if(cmd==select)
                        status.setText("searching devices for service...");
                             int index = devices.getSelectedIndex();
                             mainForm.delete(mainForm.size()-1);//deletes choiceGroup
                             mainForm.removeCommand(select);
                             ServiceDiscoverer serviceDListener = new ServiceDiscoverer(ChatController.this);
                             int attrSet[] = {0x0100}; //returns service name attribute
    UUID[] uuidSet = {new UUID(UUID_STRING,false)};
                             try
                                  agent.searchServices(attrSet,uuidSet,rDevices[index],serviceDListener);
                             catch(IllegalArgumentException iae1)
    status.setText("BluetoothStateException :"+iae1.getMessage());
                        catch(NullPointerException npe1)
    status.setText("BluetoothStateException :"+npe1.getMessage());
                        catch(BluetoothStateException bse11)
    status.setText("BluetoothStateException :"+bse11.getMessage());
    else if(cmd==send)
                             new Thread()
                                       public void run()
                                            sendMessage();
                                       }.start();
    //this method is called from DeviceDiscoverer when device inquiry finishes
    public void deviceInquiryFinished(RemoteDevice[] rDevices,String message)
    this.rDevices = rDevices;
         String deviceNames[] = new String[rDevices.length];
         for(int k=0;k<rDevices.length;k++)
         try
              deviceNames[k] = rDevices[k].getFriendlyName(false);
         catch(IOException ioe)
         status.setText("IOException :"+ioe.getMessage());
    for(int l=0;l<deviceNames.length;l++)
         devices.append(deviceNames[l],null);
    mainForm.addCommand(select);
         status.setText(message);
    //called by ServiceDiscoverer when service search gets completed
    public void serviceSearchFinished(ServiceRecord service,String message)
         String url = "";
    this.service = service;
         status.setText(message);
         try
         url = service.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);     
         catch (IllegalArgumentException iae1)
    try
         connection = (L2CAPConnection)Connector.open(url);
              status.setText("connected...");
              new Thread()
              public void run()
                   startReciever();
              }.start();
    catch(IOException ioe1)
    status.setText("IOException :"+ioe1.getMessage());
    // this method starts L2CAPConnection chat server from server mode
    public void startServer()
    status.setText("server starting...");
         mainForm.removeCommand(connect);
         mainForm.removeCommand(start);
         try
              local.setDiscoverable(DiscoveryAgent.GIAC);
              notifier = (L2CAPConnectionNotifier)Connector.open("btl2cap://localhost:"+UUID_STRING+";name=L2CAPChat");
              ServiceRecord record = local.getRecord(notifier);
              String conURL = record.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);
              status.setText("server running...");
              connection = notifier.acceptAndOpen();
              new Thread()
              public void run()
                   startReciever();
              }.start();
         catch(IOException ioe3)
    status.setText("IOException :"+ioe3.getMessage());
    //starts a message reciever listening for incomming message
    public void startReciever()
    mainForm.addCommand(send);
    mainForm.append(inTxt);
         mainForm.append(outTxt);
         while(running)
         try
              if(connection.ready())
                   int receiveMTU = connection.getReceiveMTU();
                        byte[] data = new byte[receiveMTU];
                        int length = connection.receive(data);
                        String message = new String(data,0,length);
                        inTxt.setString(message);
         catch(IOException ioe4)
         status.setText("IOException :"+ioe4.getMessage());
    //sends a message over L2CAP
    public void sendMessage()
    try
         String message = outTxt.getString();
              byte[] data = message.getBytes();
              int transmitMTU = connection.getTransmitMTU();
              if(data.length <= transmitMTU)
              connection.send(data);
    else
              status.setText("message ....");
    catch (IOException ioe5)
    status.setText("IOException :"+ioe5.getMessage());
    //closes L2CAP connection
    public void releaseResources()
    try
         if(connection != null)
                   connection.close();
              if(notifier != null)
                   notifier.close();
    catch(IOException ioe6)
    status.setText("IOException :"+ioe6.getMessage());
    import java.util.Vector;
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.ServiceRecord;
    public class DeviceDiscoverer implements DiscoveryListener
    private ChatController controller = null;
    private Vector devices = null;
    private RemoteDevice[] rDevices = null;
    public DeviceDiscoverer(ChatController controller)
    super();
    this.controller = controller;
         devices = new Vector();
    public void deviceDiscovered(RemoteDevice remote,DeviceClass dClass)
    devices.addElement(remote);
    public void inquiryCompleted(int descType)
         String message = "";
    switch(descType)
         case DiscoveryListener.INQUIRY_COMPLETED:
                   message = "INQUIRY_COMPLETED";
              break;
         case DiscoveryListener.INQUIRY_TERMINATED:
                   message = "INQUIRY_TERMINATED";
              break;
         case DiscoveryListener.INQUIRY_ERROR:
                   message = "INQUIRY_ERROR";
              break;
    rDevices = new RemoteDevice[devices.size()];
         for(int i=0;i<devices.size();i++)
              rDevices[i] = (RemoteDevice)devices.elementAt(i);
         controller.deviceInquiryFinished(rDevices,message);//call of a method from ChatController class
         devices.removeAllElements();
         controller = null;
    devices = null;
    public void servicesDiscovered(int transId,ServiceRecord[] services)
    public void serviceSearchCompleted(int transId,int respCode)
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.DataElement;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.ServiceRecord;
    public class ServiceDiscoverer implements DiscoveryListener
    private static final String SERVICE_NAME = "L2CAPChat";
    private ChatController controller = null;
    private ServiceRecord service = null;
    public ServiceDiscoverer(ChatController controller)
    super();
         this.controller = controller;
    public void deviceDiscovered(RemoteDevice remote,DeviceClass dClass)
    public void inquiryCompleted(int descType)
    public void servicesDiscovered(int transId,ServiceRecord[] services)
    for(int j=0;j<services.length;j++)
         DataElement dataElementName = services[j].getAttributeValue(0x0100);
              String serviceName = (String)dataElementName.getValue();
              if(serviceName.equals(SERVICE_NAME))
                   service = services[j];
              break;     
    public void serviceSearchCompleted(int transId,int respCode)
    String message = "";
         switch(respCode)
         case DiscoveryListener.SERVICE_SEARCH_COMPLETED:
                   message = "SERVICE_SEARCH_COMPLETED";
              break;
         case DiscoveryListener.SERVICE_SEARCH_ERROR:
                   message = "SERVICE_SEARCH_ERROR";
              break;
         case DiscoveryListener.SERVICE_SEARCH_TERMINATED:
                   message = "SERVICE_SEARCH_TERMINATED";
              break;
         case DiscoveryListener.SERVICE_SEARCH_NO_RECORDS:
                   message = "SERVICE_SEARCH_NO_RECORDS";
              break;
         case DiscoveryListener.SERVICE_SEARCH_DEVICE_NOT_REACHABLE:
                   message = "SERVICE_SEARCH_DEVICE_NOT_REACHABLE";
              break;
         controller.serviceSearchFinished(service,message);//calling a method from ChatController class
    controller = null;
         service = null;
    }

  • I have not upgraded to ff 4 but when I now search for an image online it will only show me the first two pages

    Then there are seven pages of empty grey squares ( where the images should be ) and scrolling down to the bottom there is a button which has `show more results` written on it, this happens every time I do an image search. I have done the same search using `internet explorer` and there is no problem finding thousands of pages of images.

    Finally Ive found a solution !!!!.
    Open your browser, click images and search for any image, when the images appear (probably only two pages of them) scroll right to the bottom of the page and click `Switch to basic version`. Problem solved!!!!!!.

  • My Macbook air is running slow and adware pop up eveytime I search for somthing online. Help!

    For the past week my Macbook air has been running slow and the are ads that pop up with everything I search for through firefox. I even try and open netflix on my laptop and an adware pop up comes up with it. There are many different pop ups but the one that follows is the one that pops up most. One day it is Mac OS browser warning the next day it is windows browser warning. Do I call the number on the pop up, it says I have a virus or is it a scam? help me, I don't know what to do.

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • How to search for a text node with a particular value in an xml document with labview

    supposing i have the following xml document:
    <head>
    <book>
    <bookname>zio</bookname>
    <author>dan</author>
    </book>
    <book>
    <bookname>the spear warrior</bookname>
    <author>britney</author>
    </book>
    <book>
    <bookname>the beard</bookname>
    <author>derrick</author>
    </book>
    </head>
    i want to search for the author of the book "the beard" using for example the V.I Get first match  of labview to access the the node with value "the beard" and then use Get next sibling  V.I  and Get node text content to get get the author of this book..so my question is how do i write the xpath expression for Get first match so as to access the node with bookname "the beard" instantyly?  am trying to minimise the use of loops because they increase the time duration,..thank you (NB:i dont want to use Get all Matched V.I because it obliges me to use a loop in order to access the name derrick and this increases the time duration for my v.i)
    Solved!
    Go to Solution.

    Since it's all text, why not use a real quick Match Pattern (or Regular Expression, but you don't need that much power here), see attached.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ
    Attachments:
    Two-stage match demo.vi ‏8 KB

  • Search for string and move decimal

    Hello,
    I am trying to write code that will search for a fractional string within an array and convert it from mV to V so it can be properly compared to the other fractional string numbers in the array.
    I have an array that outputs x iterations  each with a minimum and maximum column including several different types of decimal strings (negative/positive with several decimal places) each ending with either mV and V (example string: -725.543mV).
    I then split the array into columns containing the minumum and maximum values of each iteration. I want to compare the minimum values of each iteration and find the most minimum, and do the same thing with the maximum values.
    Unfortunatley the way I'm doing it, when I convert from fractional string to number it removes the V or mV unit label but does not convert the number from mV to V. so it compares -725.543mV with -52.334V as -725.543 & -52.334 thus declaring the mV value the most minimum. I need the program to recognize that mV is less than V or search each array for values labeled with mV and move the decimal place so it is in standard V format.
    The unit label is actually part of the string and not the display (as you can see in the code I've attached) and I understand this is a little tricky with the way I have to do it. But this is a dumbed down chunk of code I will eventually incorporate into my larger program which reads the values and their units from several different types of oscilloscopes. The Scopes output the values as strings as they appear on the screen and don't differentiate between mV and V unless they are told to output the units which just tags them on the end of the string.
    I'm sorry for the large post. SO to sum up I need to search an array to make sure all values have the same units, if they don't I need to convert each value to the proper unit and output the max and min from the resulting array. my code is attached. Thank you for your help.
    Solved!
    Go to Solution.
    Attachments:
    File manipulation.vi ‏15 KB

    crossrulz wrote:
    jcarmody wrote:
    camerond wrote:
    Sorry, Jim, that's not quite right. You forgot to consider significant figures (your third min is not quite right). [...]
    Good catch, but, really?   
    That "Finally!" comes out to -5569492V to me.  Holy crap.  -5.569492MV!  I think there's a problem there.
    Carp! Stupid negative numbers, shouldn't be allowed. Put a piece of duck tape over the place for that negative sign, that'll fix it.
    I'll get back, it's now a matter of principle.
    Jim, how does your algorithm do when there are 8 or 9 sig figs, say -56.9492345mV? (Yep, too lazy to draw it in myself.)
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • MIgration Assistant Stalls out on 'Searching for Disk...'

    The main problem here is, I reinstalled Snow Leopard after some acting up by the OS. Backed up ON my main HD and tried to use Migration Assistant to restore the backup. AS of now, every time I load up Migration Assistant, it just stalls on 'Searching for Disk...' and never finds a backup.
    I'll try and make a long story short, my optical drive was acting up so I took it in to the Genius Bar. Luckily, they had a new one in stock and replaced it on the spot. Upon getting my MacBook Pro (2009) back, everything was acting crazy. Lagging, freezing, etc. The genius told me it was normal that things start acting up after installing new hardware and that all I had to do was reinstall Snow Leopard and that before installation, it would ask me if I wanted to backup all my data and that once it was re-installed it would automatically come restore to its previous form. Here's where I think things got a little screwy...
    I was running Snow Leopard but unfortunately when I installed it, it was from a friend's 'family installation' pack, so I didn't have the installation CD at hand. Anxious to get things fixed, I put in my original installation disc that came with my MBP. Looking back, it should've been obvious that downgrading might cause some problems. Booted to disk and I went on to reinstall. Right before the reinstall it asked me if I wanted to backup all my data to restore once the installation was done. Sure enough, it seemed to have worked so I figured all was going well.
    The installation finished and asked me if I wanted to restore from a backup. Of course, hitting yes only gave me an error saying that the backup was created on a newer OS and that I wouldn't be able to restore it on an older OS. I was bummed out but it made sense. Fast forward another day: I call my friend and ask to borrow his Snow Leopard installation disc again. I install it, hoping to see the same, "Restore from Backup" screen at some point, but nothing.
    I noticed right away that I only had 16 GB of HD space left (what it was before any of this madness) but everything looked as if it was brand new. After some clicking around through some folders I found the old backup within some folders so I figured that everything worked fine and Migration Assistant would be a quick and easy fix. From here on, Migration Assistant can never seem to get past the loading screen. All I see is, "Searching for Disk" and an eternally spinning circle.
    Am I missing something? I've repaired disk partitions and done plenty of searching online. Am I just going to have to setup everything manually again? Thanks.
    -Raul

    Wow. Sorry, but you've made a major mess.
    I was running Snow Leopard but unfortunately when I installed it, it was from a friend's 'family installation' pack,
    That's a violation of the license. The +*family pack+* may be installed on up to 5 Macs in the same household. You need to buy your own copy of Snow Leopard.
    It sounds like the prompt you got form the Leopard disc was to +Preserve Users and settings.+ That's an +Archive and Install+ of Leopard. If so, there should be a +Previous System ...+ folder at the top level of your HD. If so, that's where you found your backed-up stuff.
    The +Restore System From Backup+ option on the DVD is to restore from Time Machine backups, and it doesn't sound like you've ever made any.
    And you cannot use +Migration Assistant+ on that folder. It works to transfer from one Mac (or Time Machine or "clone" backups of one), to a different one.
    If that's what you did, you'll have to install Snow Leopard over Leopard (that won't disturb anything else). When you start up, you'll have Snow Leopard and little else. You'll have to copy what you need from the +Previous System+ folder.
    |
    Once this is sorted out, in addition to buying Snow Leopard, you really should start making regular backups of your system. See the [Time Machine Tutorial|http://www.apple.com/findouthow/mac/#timemachinebasics] and perhaps browse [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum), and/or Kappy's post on [Basic Backup|http://discussions.apple.com/thread.jspa?messageID=12366915#12366915].

Maybe you are looking for