1 Reply Latest reply on Aug 17, 2010 2:13 AM by prethi.flex

    Create xml namespace

    prethi.flex Level 1

      Hi

       

       

      "<?xml version=\"1.0\"?><D:searchrequest xmlns:D = \"DAV:\">"

      + "<D:sql>SELECT \"urn:schemas:httpmail:sendername\" , \"urn:schemas:httpmail:subject\","

      + " \"urn:schemas:mailheader:from\", \"urn:schemas:httpmail:datereceived\" ,"

      + " \"urn:schemas:httpmail:date\", \"urn:schemas:httpmail:textdescription\" ,"

      + "\"urn:schemas:httpmail:htmldescription\" ," + " \"DAV:id\"" + ", \"DAV:href\""

      + ", \"urn:schemas:httpmail:hasattachment\"" + ", \"urn:schemas:httpmail:read\""

      + ", \"urn:schemas:httpmail:attachmentfilename\"" + ", \"urn:schemas:httpmail:to\""

      + ", \"urn:schemas:httpmail:priority\"" + ", \"urn:schemas:httpmail:importance\""

      + ", \"urn:schemas:httpmail:cc\"" + ", \"urn:schemas:httpmail:bcc\"" + " FROM \""

      + "https://server/Exchange/username/Inbox" + "\""

      + " WHERE \"DAV:ishidden\" = false AND \"DAV:isfolder\" = false"

      + " AND \"urn:schemas:httpmail:datereceived\" > CAST(\"" + "2010-08-16"

      + "\" as 'dateTime.tz')" + " ORDER BY \"urn:schemas:httpmail:datereceived\" ASC"

      + " </D:sql></D:searchrequest>";

       

           I have to generate this structure as xml.

       

           Thanks in advance.