Question

In NetBeans create a new Java project. 2. Create a new XML file in this project...

In NetBeans create a new Java project.

2. Create a new XML file in this project named movie with the following content:
<movie>
<director>Chris Columbus</director>
<imdbRef>tt0295297</imdbRef>
<year>2002</year>
<metascore>63</metascore>
<rottenTomatoes>82</rottenTomatoes>

<keywords>
<keyword>harrypotter</keyword>
<keyword>jkrowlings</keyword>
<keyword>hogwarts</keyword>
</keywords>
</movie>

3. The IMDB reference is a key that IMDB gives to each movie. It is used to access all the different features of IMDB for this movie. Just google "IMDB tt0295297" to get an idea. You would have to do this for the two other movies you create. The metaScore and the rottenTomatoes values are the respective ratings from www.metacritic.com and www.rottentomatoes.com.

4. Note that the number of keywords is unlimited, the whole keywords element is optional, but if there is a keywords element, there must be at least one keyword element,

5. Create a DTD file “movie.dtd” that captures all this. Create another movie in XML format that validates against your DTD and one that doesn't – just make sure you find the right imdb reference and the actual ratings.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

<movie>

<director>John Singleton</director>

<imdbRef>tt0322259</imdbRef>

<year>2003</year>

<metascore>38</metascore>

<rottenTomatoes>36</rottenTomatoes>

<keywords>

<keyword>Furious</keyword>

</keywords>

</movie>

<movie>

<director>Christopher Nolan</director>

<imdbRef>tt1375666</imdbRef>

<year>2010</year>

<metascore>74</metascore>

<rottenTomatoes>87</rottenTomatoes>

<keywords>

<keyword>Cobb</keyword>

<keyword>Arthur</keyword>

</keywords>

</movie>

Add a comment
Know the answer?
Add Answer to:
In NetBeans create a new Java project. 2. Create a new XML file in this project...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • java Part 1 Create a NetBeans project that asks for a file name. The file should...

    java Part 1 Create a NetBeans project that asks for a file name. The file should contain an unknown quantity of double numeric values with each number on its own line. There should be no empty lines. Open the file and read the numbers. Print the sum, average, and the count of the numbers. Be sure to label the outputs very clearly. Read the file values as Strings and use Double.parseDouble() to convert them. Part 2 Create a NetBeans project...

  • JAVA LANG PACKAGE Create a NetBeans project for this activity. 1: Create a new class with...

    JAVA LANG PACKAGE Create a NetBeans project for this activity. 1: Create a new class with attributes name and address. Both data type will be String. Create a constructor and assign the parameters to the attributes. Now override the to String() method. 2: Create a class with the main method and create an instance of the class that you created 3: Create an instance of the string in your test class and assign a value. 4: Now create an String...

  • signature 1. Create a new NetBeans Java project. The name of the project has to be...

    signature 1. Create a new NetBeans Java project. The name of the project has to be the first part of the name you write on the test sheet. The name of the package has to be testo You can chose a name for the Main class. (2p) 2. Create a new class named Address in the test Two package. This class has the following attributes: city: String-the name of the city zip: int - the ZIP code of the city...

  • help please Perform the following steps: a) Using NetBeans, Create a New Java Application Project with...

    help please Perform the following steps: a) Using NetBeans, Create a New Java Application Project with Project Name BasePlusCommission Employee Test with Create Main Class check box selected. Create comments to form a descriptive header that has the course name, your name, the assignment title, and a pledge that you have neither received nor provided help to any person. Assignments submitted without this pledge will not be graded. When you have completed the steps (b) and (c) below, you will...

  • File Processing and Arrays Create a class named FilesAndArrays. Download the sidewalk.txt file so it is...

    File Processing and Arrays Create a class named FilesAndArrays. Download the sidewalk.txt file so it is in your project’s root folder. Write a static method named findFirstMatch that accepts as its parameters a Scanner for an input file and an array of Strings keywords representing a list of keywords in a search. Your method will read lines from its input Scanner and should return the line number of the first line in the file that contains one or more words...

  • Hi, I need help with this Java activity. The requirements are: 1. Create a NetBeans project...

    Hi, I need help with this Java activity. The requirements are: 1. Create a NetBeans project for this activity. 2. Create a new class with attributes name and address. Both data type will be String. Create a constructor and assign the parameters to the attributes. 3. Create a class with the main method and create an instance of the class that you created in Test Stem 1. 4. Create an instance of the string in your test class and assign...

  • create a new Java application called "WeightedAvgWithExceptions" (without the quotation marks), according to the following guidelines...

    create a new Java application called "WeightedAvgWithExceptions" (without the quotation marks), according to the following guidelines and using try-catch-finally blocks in your methods that read from a file and write to a file, as in the examples in the lesson notes for reading and writing text files. Input File The input file - which you need to create and prompt the user for the name of - should be called 'data.txt', and it should be created according to the instructions...

  • 1.b) Create a Java application Lab3Part1b. Make sure you create a NEW project with the specific...

    1.b) Create a Java application Lab3Part1b. Make sure you create a NEW project with the specific name just given. You need to make sure the projects you create and submit have the correct names and the name of the file and name of the class are the same. The names are case sensitive. In this new project, set up your program to read in the data from the file SciFiDataBMTClean.txt using a Scanner. {file/Scanner setup 2 points}   Declare the variables...

  • Java Project Create a NetBeans project for this activity. Test Stem / Question Choices 1: Create...

    Java Project Create a NetBeans project for this activity. Test Stem / Question Choices 1: Create a new class with attributes name and address. Both data type will be String. Create a constructor and assign the parameters to the attributes. Now override the toString() method. Is this possible? A: Yes. B: No. C: In some cases where the attributes are only strings. D: Yes, as long as you explicitly extends Object class. 2: Create a class with the main method...

  • the OOP project is needed to be coded in netbeans and store a information in file...

    the OOP project is needed to be coded in netbeans and store a information in file on local machine it could be stored with xml tags since its easier. OOP Project Description Requirements: You are to design and build software media rental system. The software will track each user’s account with its rentals. A user can rent multiple media of different type/genre and all that user’s rentals are managed under their account (single account per user). A user will be...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT