OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Generic XML to WDDX conversion trouble

[ Lists Home | Date Index | Thread Index ]
  • From: "Bruce Snyder" <bsnyder@pengroup.com>
  • To: xml-dev <xml-dev@xml.org>
  • 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@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS