?
Solved

XML Genertor

Posted on 2002-06-27
5
Medium Priority
?
210 Views
Last Modified: 2010-07-27
Dear experts,

I need help from you to create a web/client application (either use swing or AWT) to generate an XML document that based on the information the user input. When the user clicks the "Create XML" button after the user input info such as XML version, Project Name, Command Name, Parameter Names etc., the application will automaticly generate an XML file looks like below:

<?xml version="1.0"?>
     <project name="LogViewer Application">
          <command name="Login">
                    <target name="success">/Disclaimer.jsp</target>
                    <target name="fail">/Login.jsp</target>
                    <requestparameter get="true" set="false" name="iv-user">java.lang.String</requestparameter>
                    <requestparameter get="true" set="false" name="pwd">java.lang.String</requestparameter>
                    <requestparameter get="false" set="true" name="errorMsg">java.lang.String</requestparameter>
         </command>
         <command name="LogList">
                   <target name="success">/LogList.jsp</target>
                   <target name="fail">/Error.jsp</target>
                   <requestparameter get="true" set="false" name="logDir">java.lang.String</requestparameter>
                   <requestparameter get="true" set="false" name="logRootName">java.lang.String</requestparameter>
                   <requestparameter get="false" set="true" name="logList">java.util.Vector</requestparameter>
                   <requestparameter get="true" set="false" name="sortKey">java.lang.String</requestparameter>
                   <requestparameter get="true" set="false" name="sortOrder">java.lang.String</requestparameter>
                   <requestparameter get="true" set="false" name="fileName">java.lang.String</requestparameter>
                   <requestparameter get="false" set="true" name="javax.servlet.jsp.jspException">java.lang.Exception</requestparameter>
          </command>
</project>

Thanks!
0
Comment
Question by:Amy01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Calron
ID: 7115987
To create your XML you could use DOM to create the structure in memory. Have a look at the following links for help on DOM:

What DOM is and how to use it:
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPDOM.html#66050

creating your own DOM:
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPDOM7.html
0
 

Author Comment

by:Amy01
ID: 7116268
I'm new to Java. I need code to help in detail.
0
 
LVL 5

Expert Comment

by:Calron
ID: 7118218
Sorry, I don't have the time to write the whole thing. This forum is for help when you get stuck. For writing java apps have a look under:

http://java.sun.com/docs/books/tutorial/


good luck
0
 

Author Comment

by:Amy01
ID: 7122100
I can't run these java apps examples. Could you please tell me how to create a "About Box" item and make the Dialog open when the user selects it from the "Help" menu. Example code please.
0
 
LVL 5

Accepted Solution

by:
Calron earned 450 total points
ID: 7123879
I can help you along, but you still have to do the programming yourself.

First: do you aim to write an applet or an application, that decides on how you begin, either you start your class extending a JApplet or JFrame:



public class MyClass extends JApplet {
  // this would be for an applet
}

Look at  http://java.sun.com/docs/books/tutorial/   for help on creating an Applet or application
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question