How to rewrite some old class

hi,
I need to rewrite some old class, but I'm not sure how...
this is old class ...
import com.sun.xml.tree.XmlDocument;
class xy {
public xy () {
XmlDocument doc = new XmlDocument();
and for example ....
Element main = doc.createElement("MAIN");
org.w3c.dom.Text name_ = doc.createTextNode(op.getName());
and so on ....
Now, I want to know which classes(packages) to use instead of com.sun.xml.tree.XmlDocument
It is an old application which I have to upgrade so I have to use this code, but I want to throw out this classes that are not used anymore in java
thanks ...

ever used 'Code guide' ? It can drop unused statements and also automatically import any used files the import statement for which were accidentally missed. But I think the software is not free..... check if the demo version is available.
if you don't want to go for the software then u have no other option than to develop your own code which can parse your files and trace the unused imported files and delete the irrelevant code lines. sounds like reinventing the wheel?

Similar Messages

  • Any suggestions on how to capture some old hi 8 tapes?

    I want to make a video montage for my parents but i need to capture from some old hi 8 tapes. Any idea how i can do that into my laptop? I realize the quality is not going to be very great but it's old footage from family reunions and what not that would be great for the montage. any suggestions are appreciated.

    Your EASIEST thing is to use a sony D8 camera... TRV730 ish series... 7xx 5xx 3xx etc. They play Hi8 and Digital 8 tapes both out via Firewire.
    Your next step is to use any other DV cam with FW and "PASSTHRU" abilities. Most, but not all cameras have this. You can put yellow video RCA and a single (or double) audio RCA into the camera, and then feed it out via FW.
    Third -- google CANOPUS and take a look at their stuff. A AV/DV converter box like that will set you back somewhere around $300us.
    Once that's all hooked up ready to go, just remember to TURN OFF device control -- use a non-controllable device setting for capture into FCP.
    Good luck,
    CaptM

  • How to read some old 5.25" floppies.

    Now I have been a die hard Mac user for a long time but way back when in the late '80 I had a PC that used 5.25" floppies. I would love to get a look at some of the stuff have on those floppies (assuming they still read). Does anyone know how I might do this? I have a 3.5" USB floppy drive that I can read PC disks on my Mac but I highly doubt anyone makes a 5.25" drive these days. I have a SCSI card still, might there be a 5.25" SCSI drive? I could also scroung up an old PC, figure out how to network it to my Mac, copy the files, etc. A Mac-only solution would be so much cooler.
    Thanks in advance,
    Jim Rider

    Take a look at the label on the card in the LC II. The 5.25 drive was built to go with a Mac II. Since the LC series was really a way to milk that Mac II motherboard to the limit by selling it to the education market, it would not be surprising to see the 5.25 DOS drive work with that model. The key thing to remember is that the drive and the card are inseperable, if memory serves me correctly.
    I will try and chase down the details. Meanwhile, take note of the warning at this site:
    http://www.mandrake.demon.co.uk/Apple/drives.html
    Never connect an Apple II 5.25" drive to a Macintosh 19 pin floppy port."
    Also, take a look at this drive:
    Apple PC 5.25" Drive (A9M0110)
    Apple's first IBM PC compatability product was a 360K floppy drive. It was designed for use with either a NuBus controller card or an SE PDS controller card. It will also work with early AST or Orange PC processor cards.
    According to Apple, the drive and controller cards are not compatible with Macs with FDHD ROMs.
    The compatability chart at the bottom of the page does say;
    "Mac SE, Mac II
    PC drive card
    Apple PC 5.25"
    Ji˜m

  • How we Rewrite the following class so that it calculates sales tax using a

    public class Item {
    private String sku;
    private double price;
    // return the sales tax
    public double salesTax() {
    return price * 0.7;
    public Item(String sku, double price)
    this.sku = sku;
    this.price = price;
    }

    one thing i would like to say you, we are here for common discussion releated to Java, i have asked a question which might be knowing to u ? but in reply i think dont want to give answer ! oky no problem !
    and as per my research abilities are concerned that are well good enough but just dont having enough resourses avilable with me thats y i have put on my quiery.
    About my Answer to Question i will find it any how.
    Thankyou.

  • I have some old slide photo and would like to put them on a disc. How do I do it?

    I have some old slide photos and would like to convert them to a slideshow how do I do it?

    Well...you have some choices. You can take the slides to a photo/camera shop and they can transfer them to a DVD. Or...you can purchase a slide veiwer like I did and while viewing slide, take its picture with a steady mounted digital camera. Then you can load them into you computer and make the slide show and then burn them to a DVD.
    Kinda complicated but it worked for me. My slide viewer was only $29 and blew the slide up to 8"x8".
    There may be a few folks on this forum who will suggest less complicated methods. I hope so.
    Luck...virg

  • How to set an actionscript class runnable + some question?

    Dear all,
      i am new to actionscript (Flex 3).
      i am from java camp and i want to achive some java-style functionality in actionscript,and hope you can help me:
      1. how to set an actionscript class runnable??
          in java, i just add a "public static void main(String[] args)" method which will be the program entry point. (IDE, right click the class and click run)
          i can't set a plain, ordinary actionscript runnable in flex builder.
          To test the class, i have to create an mxml (which in turn invoke the testing class) and it be runnable in the flex builder 3.
          any other way to ease the testing?
       2. it there any good 3rd party library for datatype conversion ? (e.g. string <> date, the build-in DateFormatter don't accept milliseconds)...
           it seems actionscript come with limited such kind of utility function
       3. in a custom mxml component, which contains several controls (say testboxes, comboboxes)...etc,
           for information hiding/prevent others to change the child controls in the custom component, how can i hide the child control, not allow
           other code to access the child by  "Component.textbox1"....any scope modifier, e.g. protected, private...etc in mxml?
       thank you.
    ppk luk

    Hi Alex,
      for question 3:
      i just wondering if it is ok or not for better code/validation.....(and it follow the good
    information hiding principle?)
      if i write the component in actionscript only, i can set the child control with scope modifier
    'private' or 'protected'..so that the component user can't just use the dot syntax to gain
    access to the child control,
    e.g. MyComponent.childControlTextInputBox.value = "A";...
    i want to force user to use MyComponent.setInputBoxValue("A")...
    (e.g. in this method, i can do some checking/validate before passing to the textbox)
      this can enforce the data consistency in my custom UI component...
      there is no way to achieve the same effect in MXML?
    (e..g <mx:TextInput id="privateChildControl" accessScope="private" .../>)
      thank you..

  • How to clear old class files cached in JVM

    JVM stores old class files in its cache even after the corresponding files have been deleted from the database. This causes a conflict if a new file is saved with the same name as one that was deleted earlier causing old data to be fetched and not the new one.
    am using the following line of code to load the class file :
    Class.forName(className, false, this.getClass().getClassLoader())
    please help
    Thanks - N

    Why are you trying to do that?
    Dynamic Classloading(reloading) has a meaing only on "application container" like WAS.
    Not appropriate for normal applcation.
    Focus on enhancing your application logic and algorithm rather than wasting your brain on difficult and meaningless things. Applying some flexible design patterns wouldn't suffice?
    Anyway, Sun provides wonderful and simple custom classloader sample.
    http://java.sun.com/developer/onlineTraining/Security/Fundamentals/magercises/ClassLoader/help.html
    Anayzing tomcat source(which is downloadable) is another approach.
    Edited by: Dion_Cho on Nov 26, 2007 5:18 PM
    Typo...

  • I have some OLD software on my Mac Pro. How do I know if it will work with Snow Leopard? Currently I'm using 10.5.8.

    I have some OLD software on my Mac Pro. How do I know if it will work with Snow Leopard? Currently I'm using 10.5.8.

    Michael Wasley's link (wikidot) is as accurate as any I can find.
    It's still wise to check with the vendors' websites for compliance.
    Biggest source of problems seems to be printer and scanner drivers.
    Appleworks 6.2.9 works fine in SL under Rosetta (note; Rosetta is installed by default in Leopard - in SL you may have to select it from the optional installations).
    Check particularly with Adobe products; some you'd think should work ok suddenly don't.

  • How do I delete old email addresses, when I try and play some of my songs I get a not authorized pop-up with an old email address?

    How do I delete old email addresses, when I try and play some of my songs I get a not authorized pop-up with an old email address?

    Edit the list the comes up when you go to the Window menu and select "Previous Recipients".
    charlie

  • I have some old cd's I have burned on itunes. How can I copy them to my iphone without using the cloud? I donot want to mess with my cloud settings because I am a technophobe . Please be gentle.

    I have some old cd's I have burned onto itunes. Howcan I copy them to my iphone without using the cloud? I donot want to mess with my cloud settings because I am a technophobe. Please be gentle

    Willy, the procdedure you describe works perfectly for AppleTV G1. In fact, I frequently play DTS music discs ripped to my iTunes library as Apple Lossless (ALAC) and synched to the ATV. What happens is that, as far as iTunes and the ATV are concerned, a conventional stereo 16/44 audio file is being played; however my reciever detects the DTS data stream, and instead of outputting static, it decodes the 5.1 channels correctly. This process parallels the way DTS discs were designed to be played back: a conventional CD player is connceted, via digital out, to a DTS-aware reciever/pre-amp and the two channels of static are recognized as 6 channels of DTS-encoded audio.
    However this process will only work if the player (CD, ATV, PC, etc.) sends a "bit-perfect" 16 bit/44.1 khz data stream to the decoding device. In the case of ATV G2 and G3, as has been discussed elsewhere, the unit resmaples all audio - including 16/44 PCM (Redbook CD)  - to 16/48. While this is not a big deal for conventional audio CDs, MP3s, and AAC files, it mangles the fragile DTS datastream and renders it undecodable. The resulting static that you hear is just like the static you would hear if you played a DTS CD on a non-DTS capable system.
    Sadly, I'm not aware of any easy way around this. You could use a program like Foobar (and the DTS plugin) to convert your DTS CDs to 6-ch .wav or .flac file. From there you could transcode the file to AC-3 and then mux it into a video container that ATV supports. You may need add a dummy video track, for iTunes/AppleTV to be ok with the file, though I'm not sure. This may be a lot of work.
    Sorry for the bad news. I wish that the iTunes/ATV ecosystem had better multi-channel audio support.
    Steven

  • How to remove old Class in Material master?

    Hello SAP gurus,
    A class has been assigned to one material and now my requirement is assign a new class to the material. Now the issue is after assign the new class while using the material in an order all the characteristic (from old and new class) is populating.
    So is it possible to remove the old Class from that material?
    Thanks
    Sha

    Hello Kalyan
    I raised an OSS note for this and below is the reply from SAP. Thanks for your support.
    Thank you for your query.
    To delete the old class their are 2 options available to you .
    1 )
    To delete the old class you have to remove the assignments of where
    it is used . Please access the old class in CL03 and then the menu
    path "Environment - Where used list"
    Once all assignments are removed you should be able to delete the class
    2)
    You could use a change number created in transaction CC01 to delete
    the class from the classification view.
    Please review note 166530 which explains about the deletion of
    classification data.
    Please refer to the online documentation at help.sap.com and the
    Classification section where it states :
    Once you have used engineering change management to process
    characteristics, characteristics of a class, or classifications, you
    must use engineering change management for all further changes.
    I hope the information is of help , please test carefully on a Non
    Productive system first
    Enda Fennelly
    Senior Support Consultant
    AGS Primary Support
    Global Support Center Ireland

  • How to replace a whole class?

    Hello,
    What is the best and fastest way to replace a whole LabView class by another one?
    I have developed an application based using a LV class. Then I have copied the class to a new location and improved it and I have developed new VIs in the copied class. Now I would like to bring that class back to the application with a simple "replace with...". But in the context menu it is grayed out.
    The reason why I copied the class to a new location is that I wanted to keep a running version of my project and to make some minor changes in the main VI. The changes in the LV class took more time and where some basic changes in concept but without affecting the names and the connector of the subVIs. So a simple replace all VI would do. Does anyone knows whether there is such a tool? Or how do I perform this?
    Regards, Jörn

    I am aware of changing a SubVI with Find and Replace. But the class which I have created consists of about 40 VIs whereby some of them are used about 10 times in the main program. So changing them manually takes some awful time. (The last time when I tried to do it this way LabView 8.6 crashed multiple times so I need to spend this awful time repeatedly.) While replacing the VIs of one class by the VIs of the new class both classes get mixed up. Easily VIs of the old class get overwritten by mistake. 
    Do you think it is reasonable to
    1. change inheritance to make the old class an ancestor of the new class
    2. change the class Ctls (which by the way cannot be searched using CTRL + F) from ancestor/old class to child/new class
    3. save the main VI
    4. undo the inheritance
    Regards, Jörn

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • How to retrieving attributes old values from a OBJECT_CHANGED event

    Hi,
    I have installed Sun ONE Directory Server 5.2. I have registared Event Listener which implements both name space change and object change interfaces. After chaning some attribute value, i am able to get the new values of attributes using getNewBinging method. But when i call getOldBinding to get attributes, it is returning null. Can any one help me how to get the old values. This is very much urgent and we are trying to write custom connectors to synchronize the data in Sun ONE directory server with other directory servers like Oracle Internet Directory.
    I am new to Java and JNDI.
    It would be great help if any one can light me in this regard. Thanks in advance.
    Thanks & Regards
    Sreedhar

    I have been also working for the same issue. getOldBinding() does not return old attributes in case of ObjectChanged event. So far I did not find any solution. Does anyone know any solution?

  • How to allow some fixed extension go in from outside to inside but not allow go from inside to outside

    how to allow some fixed extension go in from outside to inside but not allow go from inside to outside
    for example, allow JPEG, MOV, AVI data flow from outside to inside
    but not allow JPEG, MOV, AVI files access or upload or get by outside, in another words not from inside to outside
    how to configure?

    Hi,
    The ZBF link sent earlier show how we can inspect URI in http request
    parameter-map type regex uri_regex_cm
       pattern “.*cmd.exe”
    class-map type inspect http uri_check_cm
       match request uri regex uri_regex_cm
    ZBf is the feature on Cisco routers and ASA though concepts are little same but works differently. However it is important that you can be more granular with the protocol (layer 7) inspection only. Like on ASA if you will try to restrict .exe file from a p2p application that won't be possible, But on router you have some application for p2p in NBAR and you can use it file filtering. Please check configuartion example for both devices.
    Thanks

Maybe you are looking for

  • Lightroom 2.0: Save Metadata to File is not working correctly!

    Hi, I have this JPG file with no EXIF data whatsoever but I know it's capture time so I went to "Metadata » Edit Capture Time" and changed the capture time. On Lightroom in the Library module, I can see the capture time but then I save the metadata w

  • I keep getting kicked out of games.

    I keep getting kicked out of my games.  Just got a replacement iPad

  • Homehub 3 - wifi dropping only when PC on

    Over the past week when my PC is on (connected to HH3 via Ethernet cable), the devices in the house which connect via wifi (an ipad an 2 iphones) seem to keep dropping wifi connectivety. When the PC is off though , the devices keep hold of the wifi c

  • Adobe Elements is a Terrible Product

    I am in the process of posting the following on as many Social Media Websites (e.g. blogs, forums, etc.) as I possibly can: It is my opinion that Adobe PS Elements is a terrible product.  I was lead to believe that I could easily learn how to use thi

  • IPhone Developer Connection Problem

    please help i am desperate i just spent 100 dollars today on apple's developer license to distribute an app that i have been working on since last xmas i finally got the license and when i got the activation code i clicked it then it said it was inva