aspose file tools
The moose likes XML and Related Technologies and the fly likes Parsing XML doubt? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Parsing XML doubt?" Watch "Parsing XML doubt?" New topic
Author

Parsing XML doubt?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Guys,

I tried to parse an xml that I created. When I compile my java program that has the code for parsing an XML, I'm getting the error as,

C:\Documents and Settings\jothi\Desktop>javac DomParserExample.java
Note: DomParserExample.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Any reasons?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
It's not an error, just a warning. The class file should have been generated anyway. The likely reason for the warning is how collection and generics are used in the code.


Android appsImageJ pluginsJava web charts
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Thanks Ulf, yeas as you said, the class files were created. I didn't notice. By the way, why does such an error throws up?? What specific reason to it as you said above in your post??? Can you a bit elaborate on it?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
The reasons will become clear if you work through the generics tutorial.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Ulf,

Thanks for the link!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Parsing XML doubt?
 
Similar Threads
Statement and PreparedStatement question?
Which XML API do you think best???
XML and SOAP Attachment
XML parsing
Facing Problem with String replaceAll method