per rfc4287 section 4.1.3.3

   4.  If the value of "type" is an XML media type [RFC3023] or ends
       with "+xml" or "/xml" (case insensitive), the content of
       atom:content MAY include child elements and SHOULD be suitable
       for handling as the indicated media type.  If the "src" attribute
       is not provided, this would normally mean that the "atom:content"
       element would contain a single child element that would serve as
       the root element of the XML document of the indicated type.

given the last sentence in the snippet above, the answer is yes, it is valid.

Eric Scheid wrote:
Is this a valid atom entry?

    <entry>
        [...elided...]
        <summary>a snippet of foo xml</summary>
        <content type="application/foo+xml">
            <foo:thing xmlns:foo="http://xmlns.com/foo/0.1/";>
                <foo:name>King George</foo:name>
            </foo:Person>
        </content>
    </entry>

That is, is a partial xml document valid inside the atom:content element?
What about xml formats whose specs state that there must be a certain root
element (similar to how atom documents must have either <feed> or <entry> as
root elements)?

e.



Reply via email to