Re: NSXML encoding question...
Re: NSXML encoding question...
- Subject: Re: NSXML encoding question...
- From: "Paulo F. Andrade" <email@hidden>
- Date: Sun, 26 Aug 2007 17:32:27 +0100
You could try something like this (not 100% sure it will work):
<code>
<![CDATA[addr = *PC + ( *(PC + 1) << 8);]]>
</code>
And then use parser:foundCDATA: to get what you want.
Paulo F. Andrade 52439@IST
mailto: email@hidden
On 2007/08/26, at 13:35, James Housley wrote:
On Aug 26, 2007, at 8:05 AM, Martin Linklater wrote:
Hi - I want to encode the following information in an XML document:
<code>
addr = *PC + ( *(PC + 1) << 8);
</code>
If I try the above syntax and parse it using NSXLMParser I get
'parseErrorOccurred - Error NSXMLParserErrorDomain 23, (null)'
It seems to be the less-than symbols which are causing the
trouble. I've had a look at the XML specification and as far as I
can tell I should be able to encode the less-than characters like so:
<code>
addr = *PC + ( *(PC + 1) << 8);
</code>
You are almost there
<code>
addr = *PC + ( *(PC + 1) << 8);
</code>
you were missing the ";" and the end of the entities.
Jim
--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
http://www.FreeBSD.org The Power to Serve
email@hidden http://www.TheHousleys.net
---------------------------------------------------------------------
In theory there is no difference between theory and practice.
In practice there is no similarity.
-- From the "I wish I'd said that" archives.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40mega.ist.utl.pt
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden