Discussions

EJB design: Converting collection (vector) as xml ?

  1. Converting collection (vector) as xml ? (1 messages)

    Is there an easy way to convert a collection (vector) to xml ?

    Thanks
    Manish
  2. It shouldn't be too difficult to write your own "VectorToProprietaryXmlGenerator" class, which loops through the Vector and writes corresponding XML elements to some sink (OutputStream, StringBuffer, whatever). Have you checked out Sun's JAXB specification?