| Author |
warning for XmlSerializer
|
Madhu Sagar
Greenhorn
Joined: Sep 29, 2007
Posts: 8
|
|
Hi, Iam using com.sun.org.apache.xml.internal.serialize.XMLSerializer; object in a class. While compling the class file it is showing following error. /home/madhu/public_html/madhu/CSP_Descriptive/src/java/OTAHotelDescriptiveRS.java:52: warning: com.sun.org.apache.xml.internal.serialize.XMLSerializer is Sun proprietary API and may be removed in a future release XMLSerializer xserial = new XMLSerializer(); Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. How to remove this warning... Please help me....
|
 |
Freddy Wong
Ranch Hand
Joined: Sep 11, 2006
Posts: 959
|
|
You really shouldn't be using the Sun API. Use Xerces instead. http://xerces.apache.org/xerces-j/ Sun XML API uses Xerces API internally, so I believe you don't need to change anything, except the import statements. Hope this helps.
|
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
|
 |
Madhu Sagar
Greenhorn
Joined: Sep 29, 2007
Posts: 8
|
|
Hi ranch hand, Really so nice of you, I am new for parsing. How to use the Xerces. Please guide me in detail. How i can change the import statement. Kind Regards, Madhu
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Originally posted by Madhu Sagar: How to use the Xerces. Please guide me in detail.
Please ShowSomeEffort. There are even demos on the Xerces website.
How i can change the import statement.
Please tell me that's not a serious question in the intermediate forum? The Xerces website has an API online, so you can see the full packages. Import those and you're done.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Madhu Sagar
Greenhorn
Joined: Sep 29, 2007
Posts: 8
|
|
Thank you very much for your time... Now i will try to use it. Thanks alot.
|
 |
 |
|
|
subject: warning for XmlSerializer
|
|
|