[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XML property-lists problem
From: |
Helge Hess |
Subject: |
Re: XML property-lists problem |
Date: |
Mon, 25 Sep 2000 10:41:21 +0200 |
richard@brainstorm.co.uk wrote:
> Encoding an escape as  doesn't work for me - during parsing, libxml
> automatically translates that to an escape and then barfs because an escape
> isn't legal. Perhaps I'm missing something in libxml, or perhaps that's the
> way the xml standard works - I'm not enough of an sgml expert to know.
Did you try to use a CDATA section ? I think that is the way to go for
XML-invalid strings.
Another way I can imagine to work is using entities, eg &escape;.
Notably if you do not have a DTD (which probably is the case and would
be a quite restricting dependency given that most XML parsers aren't
validating), you also can't rely on whitespaces !
So for encoding NSString's containing whitespace you also need to use
either CDATA or entities.
Greetings
Helge