If it's well-formed XML then I'd think dropping it into atom:content using type="application/xml" would be acceptable. You'd just end up losing that bit of semantic metadata that tells you exactly what kind of XML it is. If you want to use the text/vnd.IPTC.NewsML media type to identify the type of XML, then you'd have to escape the markup and treat it like text. If the NewsML folks want to be able to use a proper media type to identify their stuff AND treat it as XML, they should come up with an appropriate media type registration (e.g. application/newsml+xml, etc).
- James Tim Bray wrote: > > Begin forwarded message: > >> From: John Cowan <[EMAIL PROTECTED]> >> Date: January 4, 2007 8:08:06 AM PST (CA) >> To: [EMAIL PROTECTED] >> Subject: Atom format interpretation question >> >> Am I right in thinking that content which is in fact in XML but >> is labeled with a media type that is neither generic XML nor >> ends in "+xml" cannot be included inline in an Atom entry? >> The NewsML community (which uses the registered media-type >> text/vnd.IPTC.NewsML) is concerned about this. >> >> -- John Cowan [EMAIL PROTECTED] http://ccil.org/~cowan >> Any sufficiently-complicated C or Fortran program contains an ad-hoc, >> informally-specified bug-ridden slow implementation of half of Common >> Lisp. >> --Greenspun's Tenth Rule of Programming (rules 1-9 are unknown) > > >