REALLY REALLY URGENT!!!!!!! DUE IN THREE HOURS!!!!

I BET U CANT DO THIS PROBLEM IN 3 HOURS:
Objective
The objective of this homework is to help you become familiar with the SAX and DOM interfaces for XML parsers.
Description
The structure of a web site can be saved in a graph structure. The nodes of the graph represent the web pages and the edges of the graph represent the hyperlinks between the pages. XGMML is an XML application language to save graph structures. This is a simple example of an XGMML file that represents a graph with two nodes (web pages) and one edge (hyperlink) :
<?xml version="1.0"?>
<graph>
<node id="1" label="http://www.example.org/" weight="2345">
<att name="title" value="Example Main Page"/>
<att name="mime" value="text/html"/>
<att name="size" value="2345"/>
<att name="date" value="Wed Jun 9 23:01:06 2000"/>
<att name="code" value="200"/>
</node>
<node id="2" label="http://www.example.org/software/" weight="1234">
<att name="title" value="Software Examples"/>
<att name="mime" value="text/html"/>
<att name="size" value="1234"/>
<att name="date" value="Wed Sep 19 13:11:23 2000"/>
<att name="code" value="200"/>
</node>
<edge label="Software" source="1" target="2"/>
</graph>
The only elements that you need to know for this homework are: graph, node, edge and att.
* graph - the root node of the XGMML file
* node - the node description
o id - a number to identify the node
o label - the name of the node (URL of the web page)
o weight - the weight of the node (Size of the web page)
* att - additional attributes of the node
o name - the name of the attribute
o value - the value of the attribute
* edge - the edge description
o label - the name of the edge
o source - the id of the source node
o target - the id of the target node
Problem: Given two XGMML files, generate an HTML file that contains a list of node labels of nodes that are in the first XGMML file and not in the second XGMML file.
Part A
Write a SAX application that solves the given problem. For this problem you are required to use Xerces XML Parser.
Part B
Write a DOM application that solves the given problem. For this problem you are required to use Xerces XML Parser.
Additional Information
I will provide with two XGMML file called xmljs.gr and xmljf.gr. You should write two java files: SAXdiff.java and DOMdiff.java. Please write comments in your java code.
An example how to run your java application SAXdiff:
java SAXdiff xmljs.gr xmljf.gr list.htmlWhere xmljs.gr and xmljf.gr are the given XGMML files and list.html the name of the HTML file output.
IVE BIN TRYING TO DO THIS FOR 2 HOURS, AND I CANT GET THE FIRST BIT TO WORK. SO FAR I HAVE THIS:
pubic Class Object {
public void main(String args) {
     printf("Hello World"};
IT WONT COMPILE. I JUST DONT UNDERSTAND. SOMEBODY HELP ME PLEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEASE!
PLEASE SEND YOUR ANSWER TO [email protected] ASAP.

What we need to do is make a function that gets idiots like this in trouble with their teachers. Basically have the correct code, and embed a method call in it that prints messages to the screen or something. And if it's written clever enough (not something as easy to spot as System.out.println("I got my homework done for me at java.sun.com");, they'll never know how to take it out of their code.
Then any of us can just copy & paste this function into any homework assignment we help students with who don't show any code or crosspost a million times.

Similar Messages

  • I dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games)

    i dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games) !!!

    to enhance your battery life, keep screen display to minimum, set screen lock automatically after 1 min, select internet notifications to off.

  • Iphone 5: updating to IOS 7.02 from IOS 7.0 battery runs out really fast down 50% in two hours when the phone is closed

    after updating my Iphone 5 to IOS 7.02 from IOS7.0 (with IOS 7.0 everything was fine) i have a battery life issue.
    my battery runs out really fast down 50% in two hours when the phone is closed.
    could someone help plz?

    I found this article from Google helpful.
    http://howto.cnet.com/8301-11310_39-57604792-285/for-longer-battery-life-change- these-ios-7-settings/
    Cheers

  • I rented a Movie and it has been loading for 3 hours now. Internet connection is fine. Have never had a problem with this before. What's really annoying is that the 24 hour time limit is counting down even though we cant watch it. Any suggestion"hours now

    I rented a Movie and it has been loading for 3 hours now. Internet connection is fine. Have never had a problem with this before. What's really annoying is that the 24 hour time limit is counting down even though we cant watch it. Any suggestions?

    The first thing to check would be your internet download speed, you can do this at www.speedtest.net.
    HD movies require a recommended speed of 6 Mbps, while SD movies require a recommended speed of 2.5 Mbps.
    Additionally, your 24 hours don't start until you begin to watch the movie, you have 30 days to start watching the movie.

  • Three Things to Really, Really Fix Java

    Three Things to Really, Really Fix Java
    1. One class file format, forever
    It should never change. We've had incompatibility problems when JDK 1.4 was out. Changes in
    the class library shouldn't require a new VM.
    2. Move most classes into the standard extensions
    ...so the bloat is removed, and the JRE download size is reduced.
    3. Class file build versioning
    Every time a class is rebuilt, a build ID number should be added, so we can make sure we use
    the correct version of a class. This should probably a public int getBuild() in Object.

    I mean, I have Xerces.jar 7 times on my HD. Also, for #1, I really, really think that not everyone needs all the libraries for their application. For example, 90% of programs need data structures, standard I/O. I say, we reduce the rt.jar file to have: java.lang.*, java.util, java.util.logging, java.swt (SWT - www.eclipse.org, but a renamed package), java.io, and java.net. The rest of the classes should be moved to the standard extensions. With these fewer packages, we'll stil have data structures, logging, fast GUI, basic I/O, and basic networking, while significantly reducing download time. My reasoning behind this is, most people don't need a high-performance socket I/O library (well I do...but not wordprocessors) or a SQL engine or RMI.

  • Why is the ios7 draining my battery by 50% after three hours when i havent used it?

    My iphone 5 has been updated to ios7,
    the battery life if appauling, i have lost 50% of the battery over three hours when i havent even used it,
    i also am  unable to delete my open apps?
    the apps keep freezing when i do use it,
    This is ridiculous i am really annoyed with this update as i am unable to use my phone or it will die seconds later!

    Well, you could start by searching the forum. You might then find this: https://discussions.apple.com/thread/3391947?tstart=0, a thread with over a million views and over ten thousand posts, discussing this very subject.
    But the short answer is you have an app that is using data and power. If you have an Exchange account it might be email if you get a lot of messages. If you have the FaceBook app it is almost certainly that. Exiting out of apps does not necessarily kill the background process if they are built in apps (like mail, contacts and calendar, ping, genius, iTunes). Other apps can re-launch their background tasks if they are set to receive notifications and the receive one.

  • Adjustment Brush really, really slow in LR 3.3

    Hi,
    Don't know if anyone else has this problem, but when I use the adjustment brush with the photo in 1:1 ratio, my computer becomes really, really slow to respond.  It becomes so slow, that I have to shut down LR 3.3 and restart.  I'm using Windows 7, 64bit with 8GB of memory and my color card is an ATI HD5450 with 1GB of memory.  I have my LR3.3 Camera Raw cashe settings at 75GB and on a different internal hard drive.  I do not have this problem with LR2.7, which I'm glad I didn't remove.  Anyone having this problem and found a solution?  LR3.3 has really been a head ache for me.  Lots of small, but annoying problems.
    Thanks,
    Dennis

    It is funny what we each think of as "relatively old". Three years since I purchased the PC. It works fine for everything else that I use it for but the change between LR 2 and LR 3 has been quite marked in terms of rendering speed. I would say it is far more than a doubling. If it were only a "little bit" longer I wouldn't mind but this is distinctly annoying. The images are off a 5D MKII so 21MP.
    As for keywording as the first one is available that makes an assumption that this issue is at import. Indeed I keyword in bulk at import via metadata preset and typing in keywords so I don't have to touch the images at all until they are ready to review.
    Yes import rendering is slow but in this case I am working in develop mode. I had just gone through and done batch white balance adjustments. At that point my practice is to re-render the images before I do fine w/b adjustments and adjustments to exposure and black point, this means that there is less delay between opening an image and it "loading" ready to work on. However the huge delay that it causes is making me re-think this and possibly suffering the "loading" delay instead.
    Most of the changes for LR2 to LR3 have been good (the notable exception being slideshow which is no longer useable). This however is not a good change.

  • Ever since i upgraded to mountain lion, my macbook pro is really really slow

    ever since i upgraded to mountain lion, my macbook pro (17" 2010 intel i7 4GB ram) is really really slow, specially at start up and shut down. any solution?
    my hard drive is has about 200 GB free space, and i do regular varification for my drive. i almost regret upgrading to mountain lion :-(

    Depending on the software you use (and how many programs you use at once) you may need to add more RAM. Shutdown with 10.8.2 is noticably longer than Lion's shutdown (and even slower than the original release of 10.8). I suggest you reboot your computer and immediately launch Activity Monitor. You want to watch two things: 1) RAM - as you use the computer over the next couple of hours after the reboot are you seeing the Page Out number increasing pretty quickly? That would be an indication that your computer is quickly using up RAM and pushing software and data into Virtual Memory to make room. This could account for the slow computer. 2) CPU - unless you are running some heavy duty software, your CPU usage may spike close to 80-90% for a few seconds but mostly hover in the 20-40% range. If it is higher than that, or if you see a single process using more than 70% constantly you may have a rogue process that is dragging the computer down.

  • Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • My iPad has to be really really close to the router for it to have internet. How can I make it so I can go around the house with it?

    My iPad has to be really really close to the router for it to have internet. How can I make it so I can go around the house with it? My iPad has been like this for a couple of months, and it has really irritated me. My friend came over and he had to download iTunes for something on the computer. He needed my iPad, he tried it and it wasn't really near the router.

    I'd begin by reviewing the following:
    http://support.apple.com/kb/TS1398

  • Is there a way to force my iPad to shut down? I "slid" to turn off three hours ago. The "wheel" is still spinning in the middle of the screen.

    Is there a way to force my iPad to shut down? I "slid" to turn off three hours ago. The "wheel" is still spinning in the middle of the screen.

    Yeah, hold down the top Sleep button and the Home button simultaneously.  Continue to hold until the screen goes blank and the Apple logo appears.  Ignore the red slider midway through this process, just keep holding both buttons down until the Apple logo appears -- it takes about 8-10 seconds.  That should do a soft reset and fix your problem.

  • How do I get all two or three hours of a podcast ?

    With the new itunes 11.0.1 I can only get the first hour of a two and sometimes three hour podcasts? How do I get all two or three hours?

    Easiest way is to click on the foreground colour which opens the Color Picker dialog box, and changes the cursor to the eye dropper.  Now click on the colour.  If it is crucial that it uses your selected area, copy the selection to a new layer.   I have no idea if you want a point sample, or average of entire selection or what though?

  • HT201412 i was updating my iphone 3gs to the new updates - the system said it couldn't finish the download - three hours later.  now the phone is unresponsive.  help

    i was updating my iphone 3gs to the new updates - the system said it couldn't finish the download - three hours later.  now the phone is unresponsive.  help

    Nothing happened, i managed to get my computer to recognise it and now restoring... but it says 3 hours remaining?! Will i lose everything?

  • DVD Burn more than three hours

    I have a video that lasts more than three hours and I want to burn to DVD. How I can compress it but I lose quality among all video on the DVD?

    Hi
    DL-DVDs - can hold up to 4 hours
    Using Toast™ and a SL-DVD can hold about 10 hours - BUT at a quality so bad that VHS-tapes recorded in EP-mode (x4) Will look excellent in comparision.
    Yours Bengt W

  • IPhoto 6 goes really, really slow

    Hi,
    my iPhoto 6 is going really, really slow, and as soon as I open iPhoto 6 other open programs go slow too. First I thought it must be the size of the pics but with other Photo editing programs everything seems to go with normal speed.
    Has anyone got a solution to this problem? Has anyone made similar experiences? What kind of procedures would you recommend?
    Thank you very much in advance for your help!
    Kind Regards,
    Xbal

    Actually, according to the System Requirements, 256mb is the bare minimum of RAM for OS X and iLife 6. I know this is true because (check my specs) I run with this, and my iPhoto library has 5,000 photos. But yes, it is slow. Switching between iPhoto and Safari takes a minute. Photoshop Elements 4 is even slower. I hope to upgrade to a gig soon, and I refuse to run the iLife and Quicktime updates before then. Anyway, the latest QT update is just too buggy.
    But my point is, it does work. I have made several movies in iMovie and iDVD and even burned the DVDs. I don't see how 512mb would cause the Mac to grind to a halt.

Maybe you are looking for