FROM : Jérome Laurens
DATE : Mon Nov 19 13:46:38 2007
Hi,
It took me some time to figure out what was wrong with NSXMLDocument's
+ (Class)replacementClassForClass: method
When subclassing NSXMLDocument, you can override this method to return
you own customized NSXMLNode, Element, ... class.
Unfortunately, this does not work if you open your XML documents using
the NSXMLNodeCompactEmptyElement input option.
In that case, the overriden method is properly called by the XML
parser, but the result is completely ignored
and your custom subclass is never used.
HTH
DATE : Mon Nov 19 13:46:38 2007
Hi,
It took me some time to figure out what was wrong with NSXMLDocument's
+ (Class)replacementClassForClass: method
When subclassing NSXMLDocument, you can override this method to return
you own customized NSXMLNode, Element, ... class.
Unfortunately, this does not work if you open your XML documents using
the NSXMLNodeCompactEmptyElement input option.
In that case, the overriden method is properly called by the XML
parser, but the result is completely ignored
and your custom subclass is never used.
HTH
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

