use this DTD to validate and read it in DOM, else if
you use ColdFusion I guess <CFWDDX> tag can read this
document

remember to add

         <?xml version='1.0'?>
         <!DOCTYPE wddxPacket SYSTEM 'wddx_0100.dtd'>

 before u read your wddxpacket


wddx_01.dtd

<!ELEMENT wddxPacket (header, data)>
<!ATTLIST wddxPacket
          version CDATA #FIXED "1.0">

<!ELEMENT header (comment?)>

<!ELEMENT comment (#PCDATA)>

<!ELEMENT data (null | boolean | number | dateTime |
string | array | struct | recordset | binary)>

<!ELEMENT null EMPTY>
<!ATTLIST null
          type CDATA #IMPLIED>

<!ELEMENT boolean EMPTY>
<!ATTLIST boolean
          value (true | false) #REQUIRED
          type CDATA #IMPLIED>

<!ELEMENT string (#PCDATA | char)*>
<!ATTLIST string
          type CDATA #IMPLIED>

<!ELEMENT char EMPTY>
<!ATTLIST char
          code CDATA #REQUIRED>

<!ELEMENT number (#PCDATA)>
<!ATTLIST number
          type CDATA #IMPLIED>

<!ELEMENT dateTime (#PCDATA)>
<!ATTLIST dateTime
          type CDATA #IMPLIED>

<!ELEMENT array (null | boolean | number | dateTime |
string | array | struct | recordset | binary)*>
<!ATTLIST array
          length CDATA #REQUIRED
          type CDATA #IMPLIED>

<!ELEMENT struct (var*)>
<!ATTLIST struct
          type CDATA #IMPLIED>

<!ELEMENT var (null | boolean | number | dateTime |
string | array | struct | recordset | binary)>
<!ATTLIST var
          name CDATA #REQUIRED>

<!ELEMENT recordset (field*)>
<!ATTLIST recordset
          rowCount CDATA #REQUIRED
          fieldNames CDATA #REQUIRED
          type CDATA #IMPLIED>

<!ELEMENT field (null | boolean | number | dateTime |
string | binary)*>
<!ATTLIST field
          name CDATA #REQUIRED>

<!ELEMENT binary (#PCDATA)>
<!ATTLIST binary
          encoding CDATA #FIXED "base64"
          length CDATA #IMPLIED
          type CDATA #IMPLIED>





--- Venkat <[EMAIL PROTECTED]> wrote:
> Hi all
>
> Does anyone have idea on using data which is in WDDX
> 1.0 format
>
> The format is given below:
>
> <wddxPacket version='1.0'>
>
> <header></header>
> <data>
>
> <struct>
>  <var name='ANSA'>
>   <string>
>    string bean
>   </string>
>  </var>
>
>  <var name='ANSB'>
>   <string>
>    lady's finger
>   </string>
>  </var>
>
>  <var name='ANSC'>
>   <string>
>    bird's nest fern
>   </string>
>  </var>
>
>   <varname='ANSD'>
>   <string>
>    cactus
>   </string>
>  </var>
> </struct>
>
> </data>
> </wddxPacket>
>
> I want to access display string values for
> ANSA,ANSB,ANSC,ANSD
>
> Please help me with a suitable suggestion
>
> Thanks in advance
>
>
> .venkat (Venkata Ratnam Vadlamannati)
> Daiichi Media Pte. Ltd
> 21, Kim Keat Road
> Singapore - 328805
>
> Tel: +65 849 8666 Extn.405
> Fax: +65 256 5922
> URLs: http://www.daiichimedia.com
>            http://www.moreatonce.com
>
>
>
_________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
>
>
===========================================================================
> 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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to