What's wrong with my transform? Please help!

I have a program which is trying to transform some XML data into HTML. I'm using DOM, and am selecting a node with getElementByID(). This Node is then passed to the transformer, and the data it contains should be output with HTML markup. However, the transform outputs the XML data, but with none of the HTML formatting contained in the XSL! I have a very simple program here to demonstrate what I mean
Here's the XML:
<?xml version="1.0" encoding="UTF-8"?>
<people xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="file:/C:/test.xsd">
    <person employee_no="e124">
        <name>Mary Jane</name>
        <address>420 High St</address>
        <phone>555-0123</phone>
    </person>
    <person employee_no="e123">
        <name>John Smith</name>
        <address>123 Boulevard Rd</address>
        <phone>555-0918</phone>
    </person>
</people>Here's the XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
        <xsl:template match="/">
            <html>
                    <p>Name: <xsl:value-of select="person/name"/><br/>Address: <xsl:value-of select="person/address"/><br/>Phone: <xsl:value-of select="person/phone"/></p>
            </html>
        </xsl:template>
</xsl:stylesheet>And here's the code that is giving me problems - it selects a node using getElementByID and tries to apply that node to the transform.
package xsltest;
import java.io.*;
import javax.xml.transform.stream.*;
import javax.xml.transform.dom.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import org.w3c.dom.*;
import org.apache.xerces.parsers.*;
public class XSLTest {
  String xslPath = "C:\\test.xsl";
  String xmlPath = "C:\\test.xml";
  String xsdPath = "C:\\test.xsd";
  String outPath = "c:\\XSLTest.html";
  org.w3c.dom.Document xmlDoc;
  public XSLTest() {
    /*Load the XML file, with Schema validation turned on*/
    try {
        DOMParser parser = new DOMParser();
        parser.setFeature("http://xml.org/sax/features/validation", true);
        parser.setFeature("http://apache.org/xml/features/validation/schema", true);
        parser.parse(xmlPath);
        xmlDoc = parser.getDocument();
    catch (Exception e) { e.printStackTrace(); }
    File outFile = new File(outPath);
    File xslFile = new File(xslPath);
    StreamResult result = new StreamResult(outFile);
    StreamSource xsltSource = new StreamSource(xslFile);
    /*Select the element that we wish to output HTML for*/
    Node node = xmlDoc.getElementById("e124");
    DOMSource xmlSource = new DOMSource(node);
    try {
      javax.xml.transform.TransformerFactory tff = TransformerFactory.newInstance();
      Transformer transformer = tff.newTransformer(xsltSource);
      transformer.transform(xmlSource, result);
    catch (Exception e) {
      e.printStackTrace();
  public static void main(String[] args) {
    XSLTest test = new XSLTest();
}When I do this, I get an empty document containing only:
Mary Jane 420 High St 555-0123
What am i doing wrong here?

Hello,
try this:
change the line
Node node = xmlDoc.getElementById("e124");
with this content:
Node node = null;
org.w3c.dom.NodeList theList = xmlDoc.getElementsByTagName("person");
for (int i = 0; i < theList.getLength(); i++)
if ( ( (org.w3c.dom.Element) theList.item(i)).getAttribute("employee_no").equalsIgnoreCase("e124"))
node=theList.item(i);
The problem is, that the method "getElementByID" delivers "null" in your code.

Similar Messages

  • I can't open any program anymore an my ipod since the last 30 minutes, no more games and social network programs. What is wrong with my ipod.Please help

    I can't open any program anymore on my ipod since the last 30 minutes, please help

    Did you try to reset the device by holding the sleep and home button until the Apple logo come back again?
    If this does not work, set it up again "as new device", shown in this article: How to set up your iPhone or iPod touch as a new device

  • TS1702 i if use "search" in music on my ipod touch 5th gen the result just show only album and playlist but nothing song result.whats wrong with it?please help

    i if use "search" in music on my ipod touch 5th gen the result just show only album and playlist but nothing song result.whats wrong with it?please help

    The users guide says:
    Spotlight searches the following:
    Contacts—All content
    Apps—Titles
    Music—Names of songs, artists, and albums, and the titles of podcasts and videos
    Podcasts—Titles
    Videos—Titles
    Audiobooks—Titles
    Notes—Text of notes
    Calendar (Events)—Event titles, invitees, locations, and notes
    Mail—To, From, and Subject fields of all accounts (the text of messages isn’t searched)
    Reminders—Titles
    Messages—Names and text of messages
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsynce all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • What's wrong with MyEJB? please!!

    What's wrong with my client code for lookup CMP EJB?
    i deployed a simple CMP EJB2.0 on j2ee server.
    JNDI Names
    Application
    component Type Component JNDI Name
    EJB StudentEJB myEJB
    files.Application.test.Ejb1
    General
    JAR File Name:ejb-jar-ic.jar JAR Display Name:Ejb1
    JNDI Names
    EJBs
    Component JNDI Name
    StudentEJB myEJB
    References
    Ref.Type Referenced By Reference Name JNDI Name
    Resource Ejb1[CMP] jdbc/Cloudscape
    javax.naming.NameNotFoundException: No object bound for java:comp/env
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at client.testejb.main(testejb.java:14)
    testejb.java:
    try {
    Context ic = new InitialContext();
    Context myEnv = (Context)ic.lookup("java:comp/env");
    Object objref = myEnv.lookup("MyEJB");
    StudentHome home = (StudentHome)PortableRemoteObject.narrow(objref,com.test.StudentHome.class);
    Student stu = home.create("123400001111","Satori","Asfar");
    Student stu = home.findByPrimaryKey("12340001111");
    System.out.println(stu.getFirstName());
    } catch (Exception ex) {
    ex.printStackTrace();
    Could you tell me something about myEJB?
    Thanks in advance.

    Looks like your JNDI names do not match, you have myEJB
    in the description and MyEJB in the lookup. Is this just a typo for the example?

  • What am i doing wrong with this class please help

    What am i doing wrong with this class? I'm trying to create a JFrame with a JTextArea and a ScrollPane so that text can be inserted into the text area. however evertime i run the program i cannot see the textarea but only the scrollpane. please help.
    import java.io.*;
    import java.util.*;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Instructions extends JFrame{
    public JTextArea textArea;
    private String s;
    private JScrollPane scrollPane;
    public Instructions(){
    super();
    textArea = new JTextArea();
    s = "Select a station and then\nadd\n";
    textArea.append(s);
    textArea.setEditable(true);
    scrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    this.getContentPane().add(textArea);
    this.getContentPane().add(scrollPane);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setTitle("Instructions");
    this.setSize(400,400);
    this.setVisible(true);
    }//end constructor
    public static void main(String args[]){
    new Instructions();
    }//end class

    I'm just winging this so it might be wrong:
    import java.io.*;
    import java.util.*;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Instructions extends JFrame{
    public JTextArea textArea;
    private String s;
    private JScrollPane scrollPane;
    public Instructions(){
    super();
    textArea = new JTextArea();
    s = "Select a station and then\nadd\n";
    textArea.append(s);
    textArea.setEditable(true);
    scrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    // Here you already have textArea in scrollPane so no need to put it in
    // content pane, just put scrollPane in ContentPane.
    // think of it as containers within containers
    // when you try to put them both in at ContentPane level it will use
    // it's layout manager to put them in there side by side or something
    // so just leave this out this.getContentPane().add(textArea);
    this.getContentPane().add(scrollPane);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setTitle("Instructions");
    this.setSize(400,400);
    this.setVisible(true);
    }//end constructor
    public static void main(String args[]){
    new Instructions();
    }//end class

  • What's wrong with my code? Help

    I'm attaching the code here in case it'd help in getting a faster response. This is supposed to be an exercise in turtle graphics. The idea is to use the program to draw shapes using a series of commands (I'm sure the experts here are familiar with it). It compiles and runs fine, however whenever certain commands are entered, after the move command, the program gives an exception "Array is out of bounds".
    For instance, if I enter
    1)2, 5, 1(step), 5, 1( step)
    and the print result it also not working.
    I'm a newbie to this, and I'm just trying to learn. Please help!
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.text.*;
    public class Turtle extends JApplet implements ActionListener
    JLabel commandLabel;
    JTextField command;
    JTextArea outputArea, array_area;
    char floor[][];
    int direction=0;
    String output="", number="";
    int i,j,n,com=0;
    int num=0,direct=0,pen_status=0;
    public void init()
    Container c= getContentPane();
    c.setLayout(new FlowLayout());
    outputArea = new JTextArea(9,15 );
    outputArea.setText("command"+"\n"+"1:pen up"+"\t"+"2:pen down"+"\n"+ "3:turn right"+"\t"+"4:turn left"+"\n"+ "5:move"+"\n"+"6:print"+"\n"+"9:end data");
    c.add(outputArea);
    commandLabel=new JLabel("Enter the command");
    c.add(commandLabel);
    command=new JTextField(8);
    command.addActionListener(this);
    c.add(command);
    floor=new char[20][20];
    for(int i=0;i<20;i++){
    for(int j=0;j<20;j++) {
    floor[i][j]='0';
    output+=floor[i][j];
    output+="\n";
    i=j=0;
    array_area = new JTextArea(20,20);
    c.add(array_area);
    array_area.setText(output);
         public void actionPerformed(ActionEvent e)
              play();
         public void play(){
    com = Integer.parseInt(command.getText());
    switch (com){
    case 1:
    showStatus("Pen is up");
    pen_status=0;
         command.setText("");
         break;
    case 2:
    showStatus("Pen is down");
    pen_status=1;
    command.setText("");
         break;
    case 3:
    showStatus("Turn right");
    direction+=90;
    command.setText("");
         break;
    case 4:
    showStatus("Turn left");
    direction-=90;
    command.setText("");
         break;
    case 5:
    number=JOptionPane.showInputDialog("Enter a number");
    num=Integer.parseInt(number);
    showStatus("moving");
    move();
    command.setText("");
         break;
    case 6:
    showStatus("print");
         print();
         command.setText("");
         break;          
    case 9:
         command.setEditable(false);
         break;
         default:
         showStatus("Entered the Wrong command");
    command.setText("");
         break;
         public void move()
         if (pen_status==0){
         direct = direction%360;
         switch(direct){
         case 90:
         for(n=1;n<=num;n++)
         j++;
         break;
    case 180:
    for(n=1;n<=num;n++)
         i++;
         break;
    case 270:
    for(n=1;n<=num;n++)
         j--;
         break;
    case 0:
    for(n=1;n<=num;n++)
         i--;
         break;
    else if(pen_status==1){
         direct = direction%360;
         switch(direct){
         case 90:
    for(n=1;n<=num;n++)
         floor[i][j++]='1';          
         break;
    case 180:
         for(n=1;n<=num;n++)
    floor[i++][j]='1';
         break;
    case 270:
         for(n=1;n<=num;n++)
    floor[i][j--]='1';
         break;
    case 0:
         for(n=1;n<=num;n++)
    floor[i--][j]='1';
         break;
         public void print()
         int a, b;
         output="";
         for(a=0;a<20;a++){
         for(b=0;b<20;b++){
         if(floor[a]=='1') {
         output+="*";
         else
         output+=" ";
         output+="\n";
         array_area.setText(output);     

    Ok, I wasn't aware of the code tags..
    Here're the errors I'm getting when I run the move command:
    java.lang.ArrayIndexOutOfBoundsException: -5
            at Turtle.move(Turtle.java:126)
            at Turtle.play(Turtle.java:80)
            at Turtle.actionPerformed(Turtle.java:51)
            at javax.swing.JTextField.fireActionPerformed(JTextField.java:489)
            at javax.swing.JTextField.postActionEvent(JTextField.java:670)
            at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:7
    84)Can anyone help? I'm out of ideas and frustrated

  • There's something wrong with my mac.Please help me

    Two days ago I was using my MacBook doing my own things, when suddenly I wasn't able to use my trackpad or keyboard. Nothing worked except the power button, which I held down till my Mac shut itself down.
    Then I powered it on again and it booted up normally, but again. I wasn't able to use my keyboard to log in.
    Some hours later I got it somehow to boot into safe boot and the booting didn't finish. As I read that safe booting takes a lot of time, so I went to sleep and about twelve hours later it was still booting. (Apple logo & spinning gray wheel on the screen). So I shut my mac down and some hours later I turned it on and it booted up into safe boot. The keyboard + trackpad were working then. So,then I went to disk utility and it told me to repair disk (to insert the DVD and repair the disk through disk utility), but the problem is that I am not at home and I dont have disks with me. So I tried to boot into single user mode, but it didnt let me. Still booted into the safe boot.
    Now the story repeats itself. Keyboard and trackpad arent responding. When once I booted into the safe boot(cmd+shift+v) it said something like socket is not connected.
    So I restarted my mac and nothing isnt working.
    Please help me! What can I do to save my computer and files?
    I apologize for my bad English
    (White MacBook Early 2008
    10.6.8
    4GB RAM
    120GB HDD)

    I cannot backup my files. Even not my school files. I wasn't able to do anything of my homework for tomorrow and so.
    It does not boot up and when it did it didnt recognize any of my USB sticks, but USB keyboard and mouse worked.

  • What is wrong with this? pls help!

    I have this as a listener for a JButton:
         public void actionPerformed(ActionEvent e){
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   String url = "jdbc:odbc:RezSystem";
                   Connection con = DriverManager.getConnection(url, "user10", "");
                   PreparedStatement stmt = con.prepareStatement("select cPassword from RezShopper where cShopperID = ?");
                   stmt.setString(1, textSignInName.getText());
                   ResultSet res = stmt.executeQuery();
                   if(res.next()){
                        String tp = String.valueOf(passPassword.getPassword());
                        String dp = res.getString(1);
                        System.out.println("text field = " + tp);
                        System.out.println("database = " + dp);
                        if (dp.equals((String)dp)){
                             System.out.println("Password accepted");
                        else{
                             System.out.println("Invalid password");
                   else{
                        System.out.println("Invalid sign in name");
              catch(Exception ex){
                   System.out.println(ex);
         }this is used to compare the value in a password field and a value in a column in an sql data base with a char data type and should check if they are the same. The problem is that even if they are the same it still prints out "Invalid password". What went wrong???
    thanks

    dp.equals(dp) should give you true, but I guess you meant dp.equals(tp). To debug it, I would print the character values of both strings. You don't need to cast the String to a String before you call equals..
    for (int x = 0; x < dp.length(); x++)
      System.out.println("dp("+x+")="+(int)dp.charAt(x));
    for (int x = 0; x < tp.length(); x++)
      System.out.println("tp("+x+")="+(int)tp.charAt(x));I assume that getPassword returns a char array and not a byte array. If it returns a byte array, it is possible that the charset encoding gives you a different string than you expected.

  • What's wrong with this query--need help

    Requirement: need to get the names of employees who were hired on tuesday this has to use to_char function
    select ename
    from emp
    where to_char(hiredate,'day')='tuesday';
    when i execute the query
    o/p is no rows selected
    please help.
    thanks in advance.

    Hi,
    861173 wrote:
    Requirement: need to get the names of employees who were hired on tuesday this has to use to_char function
    select ename
    from emp
    where to_char(hiredate,'day')='tuesday';
    when i execute the query
    o/p is no rows selected Try:
    WHERE   TO_CHAR (hiredate, 'fmday')  = 'tuesday'Without 'FM" in the 2nd argument, TO_CHAR pads the results to make it a consistent length. If your NLS_DATE_LANGUAGE=ENGLISH, that means it will always return a 9-character string, since the longest name in English ('Wednesday') has 9 letters. 'FM' (case-insernsitive) tells TO_CHAR not to add that kind of padding.

  • What is wrong with my LCD? Help!

    Hi guys,
    Hoping you can give me some advice on what is going on with my screen.
    I have attached a photo but basically anything that is usually white on the screen now shows up as vertical blue lines.
    It is not a software/driver problem as it occurs on startup/in the bios, and it doesnt occur if I connect an external monitor.
    I have tried swapping the RAM around etc and the problem still occurs so dont think its video ram (uses the same ram?)
    The problem has been getting progressively worse. By pushing on either the palm rest or sometimes on the power strip cover the problem goes away for a while but then comes back in 5 minutes.  So I assume it must be some cable/connection.
    Is it worth me trying to repair this myself? Where should I start? Replace the signal cable?
    Thanks for your help.
    Al
    Moderator edit: Removed broken link.

    if you have valid warranty, just call lenovo support.
    you may void your warranty if you have. if you don't hava valid one, it could be cable, connector, graphic card or lcd itself.

  • What's wrong with my itunes?HELP!

    I'm able to download iTunes but when I try to go into it all that pops up is a window that says that iTunes has encountered a problem and now has to close sorry for the inconvienence. Somebody help I've tried everything so if you have any suggestions PLEASE TELL ME.
    Thanx

    Itunes has encountered a problem and needs to close
    the first thing that i check for when people report getting that message when they try to launch their itunes is a broken QuickTime.
    try to open your QuickTime. does it launch properly, or do you get an error message?
    if you get an error message, the first thing we'll try is a careful standalone QT 7.1 reinstall.
    download and save a copy of the QT 7.1 standalone installer to your hard drive. (we'll run the install from there rather than online.) switch off antivirus and antispyware applications prior to the install.
    Quicktime 7.1 Standalone Installer
    if that install goes through okay, does your itunes launch properly again?
    (if you get an error message on the QT standalone reinstall, let us know what it says. include error message numbers if you're getting any.)

  • What is wrong with this api Pls help

    I am creating api to migrate jobs from an extenal table to hr but when executing the script it only inserts the first record and gives this message
    "-20001 ORA-20001: The job you have entered already exists in this Business Group. Please enter a unique name for your job."
    as I mentioned the job which he means already created is the first row of the table
    here is the code
    DECLARE
    l_count Number :=0;
    v_business_group_id Number :=101;
    v_date_from date := TO_DATE('01-01-1900','DD-MM-YYYY');
    v_job_group_id number := 21;
    v_object_version_number number :=1;
    v_segment1 varchar2(10);
    v_segment2 varchar2(150);
    v_attribute2 varchar2(150);
    v_attribute3 varchar2(100);
    v_attribute4 varchar2(50);
    v_attribute5 varchar2(50);
    v_attribute6 varchar2(50);
    cursor job is select DESGN_CODE,
         DESGN_DESP_M_A,
         DESGN_DESP_F_A,
         DESGN_DESP_E ,
         DESGN_TYPE ,
         DESGN_CAT_CODE,
         GRP_CODE
    from aa_tdesignation
    Where rownum < 10
    and desgn_desp_e is not null;
    v_segment5 varchar2(100) := NULL;
    v_segment6 varchar2(100) := NULL;
    v_job_id number;
    v_job_definition_id number;
    v_name varchar2(100);
    begin
    dbms_output.put_line('##########################################################');
    dbms_output.put_line('Data Migration Of Jobs:');
    dbms_output.put_line('##########################################################');
    dbms_output.put_line('Start Time : ' || TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS'));
    for my_cur in job
    LOOP
    BEGIN
    v_segment1 := my_cur.DESGN_CODE;
    v_segment2 := my_cur.DESGN_DESP_M_A;
    v_attribute2 := my_cur.DESGN_DESP_F_A;
    v_attribute3 := my_cur.DESGN_DESP_E;
    v_attribute4 := my_cur.DESGN_TYPE;
    v_attribute5 := my_cur.DESGN_CAT_CODE;
    v_attribute6 := my_cur.GRP_CODE;
    HR_JOB_API.CREATE_JOB
    (p_business_group_id => v_business_group_id
    ,p_date_from => v_date_from
    ,p_job_group_id => v_job_group_id
    ,p_object_version_number => v_object_version_number
    ,p_segment1 => v_segment1
    ,p_segment2 => v_segment2
    ,p_segment5 => v_segment5
    ,p_segment6 => v_segment6
    ,p_attribute2 => v_attribute2
    ,p_attribute3 => v_attribute3
    ,p_attribute4 => v_attribute4
    ,p_attribute5 => v_attribute5
    ,p_attribute6 => v_attribute6
    ,p_job_id => v_job_id
    ,p_job_definition_id => v_job_definition_id
    ,p_name => v_name);
    Dbms_output.put_line('Sucess'||' '||my_cur.DESGN_CODE||' '||my_cur.DESGN_DESP_M_A);
    L_COUNT:=L_COUNT+1;
    END;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE ('Total Nubmer of record'||L_COUNT);
    Exception
    When others then
    dbms_output.put_line(sqlcode||' '||sqlerrm);
    DBMS_OUTPUT.PUT_LINE ('Total Nubmer of record'||L_COUNT);
    end;
    Thanks

    You've got to remove either the semicolon or the slash at the end of the script as both will execute it, so the second time with the same info it fails.

  • ITunes and Audiobooks: What's wrong with that pair?  Help!!!!!!!!!!!!!!

    Hey,
    Every audiobook CD ends up in the music folder. I thought that the whole idea of having separate folders was to keep things organized. If it would only work like it's suppose to!!!!!!!!
    Can anyone tell that I'm a little frustrated here?

    http://aldoblog.com/audiobooks/

  • What's wrong with my iPhone 4 Bluetooth?

    I just bought a new iPhone 4 today, and when I tried to use Bluetooth to send file and receive file, they all failed. It's like when I tried to use other device to send a file to the iPhone, at first it couldn't even find the iPhone, after I turned off and turned on bluetooth again, it found the iPhone, but when I tried to send the file, said it was failed. And when I attempted to use iPhone to send a file, it couldn't even find any device, all it was doing was searching for devices all the time and nothing came out. Does any one know what's wrong with it? Please help me!

    This is not a current feature of any iphone, it never has been! I've heard that there are apps in the app store that allow you to transfer contacts but i'm not sure about anything else! Again you would need to look in the appstore, but again it will be very specific to that app if there are any at all!

  • What is wrong with the calling?

    I called the number xxxx xxx xxxx 0226 for some times, but it always showed me that Destination is temperarily blocked. What is wrong with it? Please help me out!

    Hi, tongxiu2, and welcome to the Community!
    This is one of those things that should be reviewed by Skype Customer Service as they have more information on call routing and areas Skype access changes.  As a safety and security measure, a forum moderator deleted the particular number. 
    Here is a link to start with to reach out to Skype Customer Service: contact customer service
    Kind regards,
    Elainem77
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • File data copying problem

    Hi, Im trying to copy the contents fron one file(say abc.txt) to another file(say def.txt)....Whats wrong in the below code... package com.home.practise.streams; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; impor

  • T500 Windows 7 blue screen on VPN disconnect

    Brand new T500 came with Win7 preinstalled. Machine is connected to a Windows domain at work, and I VPN into various clients' networks. Often (not always) when I disconnect the standard Microsoft VPN, the screen goes black, and I see the disk active

  • Installation error message on Win7 32bit

    Hi everyone, I hope someone can help me with my installation error issues.    I get the following error message when attempting to install CP5 as a trial version: ------------------------------------- Summary -------------------------------------- -

  • Whilst running Sky Go app to Apple TV I get good sound but no picture?

    I'm running Sky Go app (via my iPhone 4) directly through Apple TV and although I get good sound from the TV I dont seem to be getting a picture - can anyone help please? Thanks

  • Ctrl-alt-end on mac keyboard

    Our system at work uses WIndows XP and I can now use Remote Office to get on the system from home. Previously, I had to run Parallels Desktop for windows. Now, I can run it from Safari, except to begin the login process, I must hit the combination of