[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xml files
From: |
Scott Christley |
Subject: |
xml files |
Date: |
Wed, 21 Jul 2004 18:32:09 -0500 |
Thanks for the answers to my last question, a simple makefile worked
great. I made a gorm file for the interface and am now trying to run
the application. This app has a property list file that is in xml
format, and GNUstep isn't liking it. The code to load the files looks
like:
... [[NSBundle mainBundle] pathForResource:@"ChartAttributes"
ofType:@"plist"]
and I get these error messages:
2004-07-21 18:58:48.136 Example[9903] File NSData.m: 144. In
readContentsOfFile Open ( ) attempt failed - bad path
2004-07-21 18:58:48.136 Example[9903] File NSData.m: 144. In
readContentsOfFile Open (o) attempt failed - bad path
2004-07-21 18:58:48.597 Example[9903] don't know how to load entity
'http://www.apple.com/DTDs/PropertyList-1.0.dtd' id '-//Apple
Computer//DTD PLIST 1.0//EN'
.:3: validity error: Validation failed: no DTD found !
<plist version="1.0">
^
So I tried changing the DTD reference from this:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
to this which I found somewhere in the base library source code:
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN"
"http://www.gnustep.org/plist-0_9.xml\">
<plist version="0.9">
which gives a slightly different error:
2004-07-21 19:22:26.230 Example[9972] File NSData.m: 144. In
readContentsOfFile Open ( ) attempt failed - bad path
2004-07-21 19:22:26.231 Example[9972] File NSData.m: 144. In
readContentsOfFile Open (o) attempt failed - bad path
.:3: validity error: Validation failed: no DTD found !
<plist version="0.9">
any hints?
thanks!
Scott
- xml files,
Scott Christley <=