Re: Problems with NSXMLOutputStream
Re: Problems with NSXMLOutputStream
- Subject: Re: Problems with NSXMLOutputStream
- From: Han Ming Ong <email@hidden>
- Date: Thu, 10 Jul 2003 14:52:45 -0700
IIRC, there should be an example in
/Developer/Examples/JavaWebObjects/XMLInteroperate
that shows that the output is indented (at least on my WO 5.2.1
system). As well, it has some XSLT scripts that demo'ed how transform
to more readable format (no reverse trip though, unfortunately).
HTH, Han Ming
On Thursday, July 10, 2003, at 01:58 PM, Eric Hermanson wrote:
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
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
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.