Data binding is a good approach for this, but not JAXB. Sun announced at JavaOne that the current JAXB EA is a deadend as far as they're concerned - they're throwing it away and starting over with an approach that looks a lot like the other data binding approaches already available. It's a shame - JAXB has some really innovative features.
Castor (http://www.castor.org) is probably a better approach to use for now. The new JAXB won't even be out in EA form until late summer. - Dennis Ying Su wrote: >Hi, you can try Java XML Banding (JAXB) which can be found on Sun's Website. It's >faster than DOM and more powerful than SAX. > >regards >Ying >----- Original Message ----- >From: "Bryan LaPlante" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, April 01, 2002 4:37 AM >Subject: Seeking expert XMLer's opinion > > >>I have a jsp custom tag that validates a submitted form. The tag builds an >>object on both the server and client for handling required and grouped >>element validation. The validate has a child tag that listens for an error >>concerning it's assigned element and in the event that JavaScript has been >>turned off it will output the error at the position of the page where it was >>placed. Both tags support a wealth of options for grouping elements based on >>conditions and validating against a regular expression. >> >>I would like to make it possible for the end user create an XML file that >>would describe the form to be validated and save them all of the extra >>typing into tag attributes. I have been reading through the >>http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/xml/parsers/package-summ >>ary.html and >>http://java.sun.com/j2ee/sdk_1.3/techdocs/api/org/xml/sax/package-summary.ht >>ml packages. I have not tried to use Java to read an xml file yet and some >>advise about how to approach it would be appreciated. In a nut shell all I >>want to do is read in the attributes for each element so that I can output >>the client side object and build the server side object to validate the >>elements of the form. >> >>Sorry so long winded. >> >>Thanks in advice. >> >>Bryan LaPlante >>President >>Network Web Applications Inc. >> >>=========================================================================== >>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >>Some relevant FAQs on JSP/Servlets can be found at: >> >> http://archives.java.sun.com/jsp-interest.html >> http://java.sun.com/products/jsp/faq.html >> http://www.esperanto.org.nz/jsp/jspfaq.jsp >> http://www.jguru.com/faq/index.jsp >> http://www.jspinsider.com >> >> >��������������������������������������������������������Ӣ�칻 >�&��ǧu�s(S([h-+-����6�k�.Y"�(^(TM)��S(w%�עz(�^n++r��azg��� �� z(++�HDU,D� ��DD"��+r >�z�������r �z��j�����r0/00�j�!S(���ǫ�W��)�z����ms(T^�<�q��+�i���j�����r0/00��� >��l�ǫ�W���mz��--�<�q��+٥,""HDU �i� m���� �-� ��(>�s(z(楳��z����+٥ > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
