Problems with NSXMLOutputStream
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.