• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
xml serializing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xml serializing


  • Subject: xml serializing
  • From: Jeff Schmitz <email@hidden>
  • Date: Wed, 30 Jan 2008 11:06:54 -0600

Using the NSXmlOutputStream class as described in Practical Webobjects and passing in a key value, e.g.

     xml_stream.writeObject(first(), "first") 

 I'm getting output with a structure that doesn't match what is shown in the book.  For example, here is a snippet of my output:

        <string id="7" xml:space="preserve">jeff</string>
        <string idRef="7" key="first"/>

Note the extra level of indirection where the key value is in its own element that has a reference to another element that contains the associated key data.  

According to the book, and Apple's own documentation, I would have expected something more like:

        <string id="7" key="first" xml:space="preserve">jeff</string>

I'm thinking the format I'm getting is going to make any XSL I write a little more complicated, and it also worries me that in the future this format could change, breaking all my xsl's.  Any idea why this might be?

Thanks,
Jeff
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: xml serializing
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: UTF-8
  • Next by Date: Re: xml serializing
  • Previous by thread: Re: Changing domain on the fly, Design Advise...
  • Next by thread: Re: xml serializing
  • Index(es):
    • Date
    • Thread