[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Bruce Snyder" <bsnyder@p...>
  • To: xml-dev <xml-dev@x...>
  • Date: Thu, 08 Jun 2000 17:00:45 -0600

I'm in the process of converting a generic XML document to WDDX and I've
run into a problem. 

In the generic XML document is the following tag and it's contents:

  <phones>
    <phone kind="home">0551234567</phone>
    <phone kind="palace">0000000001</phone>
  </phones>

I've converted most of this into WDDX as follows:

               <var name="phones">
                  <array length="2">
                     <struct>
                        <var name="phone">
                           <number>2551234567</number>
                        </var>
                     </struct>
                     <struct>
                        <var name="phone">
                           <number>000 000 0001</number>
                        </var>
                     </struct>
                  </array>
               </var>

Notice that I have not converted the attribute of the phone tag called
kind. I can't figure out how additional attributes in a tag (such as
kind) are represented in WDDX. Can someone help me here?

Thanks,
Bruce Snyder

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member