• 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
Problems with NSXMLOutputStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with NSXMLOutputStream


  • Subject: Problems with NSXMLOutputStream
  • From: Eric Hermanson <email@hidden>
  • Date: Thu, 10 Jul 2003 13:58:08 -0700

I'm having a couple of problems with NSXMLOutputStream and I wondered if anyone else has found solutions?

1. The output stream seems to spit out very unreadable XML in that there is no indentation, and even no spaces, between the elements. This is all despite the fact that I've set the outputFormat to setIndenting==true.

2. I have been trying to find a sample XSL transformation that will pretty-print foundation level objects when they're written to XML (NSArray, NSDictionary, etc). I found the following transformation on the Apple documentation website but there are two problems with it. First, it prints NSDictionaries in very verbose format (and I would like a much more concise format like <myKey>myValue</myKey>. Also, the XML output by this transformation doesn't seem to be indented either (despite the fact that the XSL output is indent = "yes").

See: http://developer.apple.com/documentation/WebObjects/XML_Serialization/ Listings/chapter_8_section_4.html

So... has anyone written a nice foundation kit XSL transformer, or found the workaround for the indentation/spacing issues in NSXMLOutputStream?

Thanks,
Eric
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Problems with NSXMLOutputStream
      • From: Han Ming Ong <email@hidden>
  • Prev by Date: Embedding EOF into Desktop apps [was WWDC Attenders WebObjects Tr ack]
  • Next by Date: Re: Problems with NSXMLOutputStream
  • Previous by thread: Embedding EOF into Desktop apps [was WWDC Attenders WebObjects Tr ack]
  • Next by thread: Re: Problems with NSXMLOutputStream
  • Index(es):
    • Date
    • Thread