in reply to Repair malformed XML

Like you, I don't have the DTD, but I'm not sure of your assumption. I think the indentation gives you the sense that <o:version> should span until just before </cc:files>, but looking at how other o: tags work, I think this would be the proper closing:
<cc:files> <o:destination><![CDATA[/Documents/some file.pdf]]></o:destinati +on> <y:name><![CDATA[some file.pdf]]></y:name> <r:DenyAccess dt="mv.string"></r:DenyAccess> <o:version> <d:contentclass><![CDATA[urn:content-classes:baseddocument]]> +</d:conten +tclass> </o:version> <!-- <<<<<<<<<<<<< > <o:source><![CDATA[\sources\some file.pdf\some file.pdf]]></o:so +urce> <a:FriendlyVersionID>1.0</a:FriendlyVersionID> <a:owner><![CDATA[SERVER\iusr_server]]></a:owner> <a:CreatedTimeStamp>2/1/2005 6:41:30 PM</a:CreatedTimeStamp> <a:DocumentState>approved</a:DocumentState> <a:IsCurrentVersion>False</a:IsCurrentVersion> </cc:files>

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^2: Repair malformed XML
by spoulson (Beadle) on Feb 03, 2005 at 18:05 UTC
    Yes, and I believe I was not clear on all the points that lead me to believe how to repair the XML. Here is one of the well-formed cc:files tags also found in the same document:
    <cc:files> <o:destination><![CDATA[/Documents/some file1.pdf]]></o:destinat +ion> <y:name><![CDATA[some file1.pdf]]></y:name> <r:DenyAccess dt="mv.string"></r:DenyAccess> <o:version> <d:contentclass><![CDATA[urn:content-classes:Cancelled]]></d: +contentclass> <o:source><![CDATA[\sources\some file1.pdf\some file1(1.0).pd +f]]></o:source> <a:FriendlyVersionID>1.0</a:FriendlyVersionID> <a:owner><![CDATA[SERVER\autostore]]></a:owner> <a:CreatedTimeStamp>1/21/2005 6:59:15 PM</a:CreatedTimeStamp> <a:DocumentState>approved</a:DocumentState> <a:IsCurrentVersion>False</a:IsCurrentVersion> <o:Title><![CDATA[ST. Cloud CC]]></o:Title> <a:bestbetcategories/> <a:bestbetkeywords/> <a:comment><![CDATA[]]></a:comment> <a:checkoutcomment><![CDATA[]]></a:checkoutcomment> </o:version> <o:version> <d:contentclass><![CDATA[urn:content-classes:basedocument]]>< +/d:contentclass> <o:source><![CDATA[\sources\some file2.pdf\some file2(2.0).pd +f]]></o:source> <a:FriendlyVersionID>2.0</a:FriendlyVersionID> <a:owner><![CDATA[SERVER\autostore]]></a:owner> <a:CreatedTimeStamp>1/21/2005 6:59:15 PM</a:CreatedTimeStamp> <a:DocumentState>approved</a:DocumentState> <a:IsCurrentVersion>False</a:IsCurrentVersion> <o:Author><![CDATA[Finance]]></o:Author> <o:Title><![CDATA[test]]></o:Title> <a:Categories><![CDATA[]]></a:Categories> <o:Description><![CDATA[ck]]></o:Description> <o:Keywords><![CDATA[ap;]]></o:Keywords> <a:bestbetcategories/> <a:bestbetkeywords/> <a:comment><![CDATA[]]></a:comment> <a:checkoutcomment><![CDATA[]]></a:checkoutcomment> </o:version> <o:version> <d:contentclass><![CDATA[urn:content-classes:basedocument]]>< +/d:contentclass> <o:source><![CDATA[\sources\some file3.pdf\some file3(2.1).pd +f]]></o:source> <a:FriendlyVersionID>2.1</a:FriendlyVersionID> <a:owner><![CDATA[SERVER\autostore]]></a:owner> <a:CreatedTimeStamp>1/21/2005 6:59:15 PM</a:CreatedTimeStamp> <a:DocumentState>createdcheckedin</a:DocumentState> <a:IsCurrentVersion>True</a:IsCurrentVersion> <o:Author><![CDATA[ap]]></o:Author> <o:Title><![CDATA[test]]></o:Title> <a:Categories><![CDATA[]]></a:Categories> <o:Description><![CDATA[ck]]></o:Description> <o:Keywords><![CDATA[ap;]]></o:Keywords> <a:bestbetcategories/> <a:bestbetkeywords/> <a:comment><![CDATA[]]></a:comment> <a:checkoutcomment><![CDATA[]]></a:checkoutcomment> </o:version> </cc:files>