• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Passing "&" through info-plist processing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing "&" through info-plist processing


  • Subject: Re: Passing "&" through info-plist processing
  • From: Henry Kannapell <email@hidden>
  • Date: Fri, 28 Sep 2007 15:06:14 -0400

Thanks to quick observations by a couple of readers, I have a more information:

The syntax for the XML ampersand escape has a semicolon at the end, which I missed. Thus, it should have been :

<string>0x00789004&amp;0x00ffffff ...

This corrected string is now passed through the processing system without error, either by using preprocessing symbols or just directly typing it in.

But now, the end result is:
<string>0x00789004&amp;0x00ffffff ...

where I thought it should  be:
<string>0x00789004&0x00ffffff ...

But the former is correct; it seems the single "&" is not recognized any longer. The &amp; was correctly recognized.


On Sep 28, 2007, at 1:04 PM, Henry Kannapell wrote:

I am building a IOKit driver and would like to use the ampersand "And" logic on some of the IOKitPersonality matching fields, like in IOKit Fundamentals: Device and Driver matching:

<key>IOPCIMatch</key>
<string>0x00789004&0x00ffffff 0x78009004&0xff00ffff</string>

However, I can't get the "&" to go through the info.plist processing in my XCode 2.4 project. I've tried various combinations of 
- "&amp"
- turning off preprocessing
- INFOPLIST_PREPROCESSOR_DEFINITIONS
- &

which eventually set the desired string in the intermediate file. Where it fails is in the com.apple.tools.info-plist-utility Info.plist - expandbuildsettings -o ...., which seems to run regardless of the preprocessing settings. I then get an XML parser issue on the "&" in the string field. Shouldn't "&amp" have been processed as an escape for "&"?

IOPCIFamily has an IOKitPersonality (IOPCI2PCIBridge-i386) which has an ampersand in it; but it was made with the old style info.plist in the project file. I have been doing everything with separate info.plist files; is there a way to embed the ampersand with an info.plist file?

So, any help would be greatly appreciated. For now, I'll just script a cleanup after the package is built, but I'm thinking there has to be a better way. And where is com.apple.tools.info-plist-utility ? I can't seem to find it as a separate executable.






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Passing "&" through info-plist processing (From: Henry Kannapell <email@hidden>)

  • Prev by Date: Re: Rép : Porting InDesign CS2 plug-in to XCode
  • Next by Date: Creating new run script phase via Applescript
  • Previous by thread: Re: Passing "&" through info-plist processing
  • Next by thread: Indesign CS2 plugins
  • Index(es):
    • Date
    • Thread