?
Solved

webservices(Petty doubt)

Posted on 2006-06-12
2
Medium Priority
?
254 Views
Last Modified: 2010-03-31
If I write a jaxp to parse an xml file, how should I test it. My doubt is can I directly run the java code just as a basic java file by passing the xml file as input stream or should I make a .jar file and write a deployment descriptor and deploy that file or should i write a client code and lookup at the parsing file which takes the xml object and parses it. Just give me strp by step. I will be really pleases as I am new to it.
0
Comment
Question by:rmvprasad
[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
2 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 16891862
>> If I write a jaxp to parse an xml file,

That can be done simply by using JUnit - www.junit.org. It is also integrated with IDEs like Eclipse.

>> should I make a .jar file and write a deployment descriptor and deploy that file or should i write a client code and
>> lookup at the parsing file which takes the xml object and parses it.

Not necessary just for unit-testing the parsing piece. Once the parsing functionality is verified, you can verify if it works this way too, so this would be the second step.
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 16891879
have a look at the below link if that helps,

http://java.sun.com/xml/
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month14 days, 3 hours 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