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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Parsing XML doubt?" Watch "Parsing XML doubt?" New topic
Author

Parsing XML doubt?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9629
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  70
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.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9629
    
    2

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: 42950
    
  70
The reasons will become clear if you work through the generics tutorial.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9629
    
    2

Ulf,

Thanks for the link!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parsing XML doubt?