On Jul 15, 2009, at 5:05 PM, Adam R. Maxwell wrote:


On Jul 15, 2009, at 8:01 AM, Christiaan Hofman wrote:


On Jul 15, 2009, at 4:53 PM, Adam R. Maxwell wrote:


On Jul 15, 2009, at 7:49 AM, Christiaan Hofman wrote:


On Jul 15, 2009, at 4:44 PM, Adam R. Maxwell wrote:

On Jul 15, 2009, at 6:28 AM, SourceForge.net wrote:

Bugs item #2821650, was opened at 2009-07-15 06:04
https://sourceforge.net/tracker/?func=detail&atid=497423&aid=2821650&group_id=61487

Comment By: ssp (ssssssp)
Date: 2009-07-15 14:29
As far as I can tell, dropping empty elements is considered a
feature
rather than a bug. At least the removal of empty elements is
documented in
the NSError returned by the -init... method, so it seems
intentional rather
than an oversight.

Does using NSXMLNodePreserveEmptyElements when creating the document
help with this problem?

I don't see that, as we don't create the NSXMLNodes.

But it could be passed when creating the NSXMLDocument, along with
NSXMLDocumentTidyHTML.  It's just a guess, since I haven't tried it.

It's an option for NSXMLNode, and the options for NSXMLDocument are
explicitly listed, it doesn't include this option.

Documentation says "Because NSXMLDocument is a subclass of NSXMLNode, you can also use the relevant input and output options described in “Constants” in the NSXMLNode class reference." I was actually looking at the NSXMLDocument.h header, though, where it's listed as a comment near the top.

That seems to contradict the other comments in those docs. Why list a subset of options when all options are valid? This makes no sense. I'll file a documentation bug.

Apart from that, it's not true. I tried passing this option and it made no difference, the empty <span> elements were still not included.

Christiaan

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to