[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-rdf
Subject:    Re: XML Entities in assertions
From:       "Benjamin D. Smedberg" <bsmedberg () covad ! net>
Date:       2004-12-31 13:09:00
Message-ID: cr3j1c$d911 () ripley ! netscape ! com
[Download RAW message or body]

Neil Stansbury wrote:
> Hi All,
> 
> I just wondered if anyone could clarify how best to handle the following:
> 
> <rdf:li rdf:resource="http://host.domain.com/b&b/page.php?ab=1&cd=2"/>
> 
> There are two entities in that URI one that must be escaped and one that 
> mustn't, and they both have to be escaped when in an RDF statement.

I don't understand. Both ampersands should be escaped, because they are 
in XML:

http://host.domain.com/b&amp;b/page.php?ab=1&amp;cd=2

> Is there an xpcom mechanism for handling/unescaping entities in URI's?

Take a look at nsEscape.h

--BDS
_______________________________________________
Mozilla-rdf mailing list
Mozilla-rdf@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-rdf
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic