pgaval / xcmis

Automatically exported from code.google.com/p/xcmis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to upload XML

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. we are unable to upload the xml 
The basic problem is The only way we can store XML at the moment is basically 
by storing it as character data (CDATA) rather than as XML




Here is the log for CDATA ERROR:

XML Parsing Error: XML or text declaration not at start of entity Location: 
moz-nullprincipal:{2a39c23b-b203-46eb-aec2-485b0c867930} Line Number 6, Column 
31:
    <atom:content type="text"><?xml version="1.0"?>
------------------------------^

Source
<atom:entry xmlns:app="http://www.w3.org/2007/app" 
xmlns:atom="http://www.w3.org/2005/Atom" 
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" 
xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/" 
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"> 
<atom:content type="text"><?xml version="1.0"?> <rdf:RDF 
xmlns:cnt="http://www.w3.org/2011/content#" 
xmlns:xyzp="http://ecs.myswebsite.com/users/" 
xmlns:oa="http://www.w3.org/ns/openannotation/core/" 
xmlns:xyza="http://www.xyzpub.com/annotation/" 
xmlns:foaf="http://xmlns.com/foaf/0.1/" 
xmlns:xyzag="http://www.xyzpub.com/agent/" 
xmlns:dc="http://purl.org/dc/elements/1.1/" 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <oa:Annotation 
rdf:about="/users/6DA81B9E89560CCDE04400144F250A8C/eBooks/"> <dc:title 
xml:lang="en"></dc:title> <oa:hasTarget rdf:resource="" /> <oa:hasBody> 
<cnt:ContentAsXML rdf:about="http://www.xyzpub.com/annotation/uuid"> 
<cnt:characterEncoding>utf-8</cnt:characterEncoding> <cnt:rest></cnt:rest> 
<cnt:dtDecl rdf:resource="dtd0" /> </cnt:ContentAsXML> </oa:hasBody> 
<oa:annotator> <foaf:Person 
rdf:about="http://ecs.myswebsite.com/users/6DA81B9E89560CCDE04400144F250A8C"> 
<foaf:name>California Teacher</foaf:name> </foaf:Person> </oa:annotator> 
<oa:annotated>2012-09-24T06:05:49.079Z</oa:annotated> <oa:generator 
rdf:resource="http://www.xyzpub.com/agent/agent" foaf:name="myswebsite eBook 
Viewer" /> <oa:generated>2012-09-24T06:05:49.079Z</oa:generated> 
<oa:modelVersion rdf:resource="1.0.0" /> </oa:Annotation> <cnt:DoctypeDecl 
rdf:about="#dtd0"> <cnt:doctypeName>html</cnt:doctypeName> 
<cnt:publicId>-//W3C//DTD XHTML 1.1//EN</cnt:publicId> 
<cnt:systemId>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</cnt:systemId> 
</cnt:DoctypeDecl> </rdf:RDF> </atom:content> <cmisra:object> <cmis:properties> 
<cmis:propertyString localName="cmis:name" propertyDefinitionId="cmis:name"> 
<cmis:value>49117372-4227-4060-9a68-dc117bb838eb</cmis:value> 
</cmis:propertyString> <cmis:propertyInteger localName="cmis:rating" 
propertyDefinitionId="cmis:rating"> <cmis:value>0</cmis:value> 
</cmis:propertyInteger> <cmis:propertyString localName="cmis:ISBN" 
propertyDefinitionId="cmis:ISBN"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:unit" 
propertyDefinitionId="cmis:unit"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:lesson" 
propertyDefinitionId="cmis:lesson"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:page" 
propertyDefinitionId="cmis:page"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:type" 
propertyDefinitionId="cmis:type"> <cmis:value>note</cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:subject" 
propertyDefinitionId="cmis:subject"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:grade" 
propertyDefinitionId="cmis:grade"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:courseSection" 
propertyDefinitionId="cmis:courseSection"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:unreadCommentCount" 
propertyDefinitionId="cmis:unreadCommentCount"> <cmis:value></cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:docPath" 
propertyDefinitionId="cmis:docPath"> 
<cmis:value>/users/6DA81B9E89560CCDE04400144F250A8C/eBooks/</cmis:value> 
</cmis:propertyString> <cmis:propertyString localName="cmis:status" 
propertyDefinitionId="cmis:status"> <cmis:value>New</cmis:value> 
</cmis:propertyString> <cmis:propertyBoolean localName="cmis:isPrivate" 
propertyDefinitionId="cmis:isPrivate"> <cmis:value>True</cmis:value> 
</cmis:propertyBoolean> <cmis:propertyId localName="cmis:objectTypeId" 
propertyDefinitionId="cmis:objectTypeId"> 
<cmis:value>cmis:custom14</cmis:value> </cmis:propertyId> </cmis:properties> 
</cmisra:object> </atom:entry>



Original issue reported on code.google.com by magicRo...@googlemail.com on 24 Sep 2012 at 2:40