Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2623

Atom binding JavaScript client needs model to XML serialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SCA-1.4
    • Java-SCA-1.4
    • None
    • All platforms, JavaScript client side

    Description

      Currently the JavaScript client supports XML to model deserialzation. This allows one to go from XML documents to the JavaScript Atom model of Feeds, Entrys, Persons, etc. Luciano suggested in feed back to TUSCANY-2568 on the dev mail list that we be able to serialize from the model to XML as well.

      For example:

      var entry = new Entry();
      entry.setTitle( "cart-item" );
      entry.setContent("Apples $2.99" );

      var xml = entry.toXML();
      // entry = '<entry xmlns="http://www.w3.org/2005/Atom"><title>cart-item</title><content
      type="text">Apples $2.99</content></entry>'

      Attachments

        Issue Links

          Activity

            People

              beckerdo Daniel O. Becker
              beckerdo Daniel O. Becker
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: