Friday, March 13, 2009

Can I use the getAttribute() and setAttribute() methods of Version 2.2 of

Question :Can I use the getAttribute() and setAttribute() methods of Version 2.2 of
the Java Servlet API to parse XML documents? (EJB)

Answer :Yes. Use the setAttribute() method for SAX mode parsing and the
getAttribute() method for DOM mode parsing. Using these methods in a
Servlet, however, is a WebLogic-specific feature. This means that the
Servlet may not be fully portable to other Servlet engines, so use the
feature with caution.

No comments: