Re: why would I get <true></true> in coredata metadata plist?
Re: why would I get <true></true> in coredata metadata plist?
- Subject: Re: why would I get <true></true> in coredata metadata plist?
- From: Jesse Grosjean <email@hidden>
- Date: Wed, 1 Mar 2006 08:04:48 -0500
And in fact the error reported is not in a "true" element at all
but in a "false" one somewhere else.
I was doing multiple tests and unfortunately described the true case,
but included the error output for the false case. But in either case
it's the same problem, core data is writing out <true></true> or
<false></false> in the metadata but can't read it back in.
<true></true> and <true/> are semantically equivalent in XML, so
replacing
one for the other is not going to cause any errors.
That's what I would expect, but in the case of property lists it
doesn't appear to be correct. This property list opens fine in
"Property List Editor"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<true/>
</plist>
while this one does not.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<true></true>
</plist>
But I don't really mind that plists can't read in '<true></true>',
I'm wondering what I could be doing that would make CoreData write
that out instead of '<true/>' in the first place. The original object
in the list is a NSNumber created with numberWithBool.
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden