• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parsing XML doubt?

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reasons will become clear if you work through the generics tutorial.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,

Thanks for the link!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic