I'm loading an XML file using XCC in C#.  It's working fine, but I
noticed one detail I'm not sure about.

I'm loading the file with the following snippet:

FileInfo file = new FileInfo(fileUri);
ContentCreateOptions options = new ContentCreateOptions();
options.Collections = new string[] { this.Collection };
options.Format = DocumentFormat.Format.XML;
Marklogic.Xcc.Content myDocument =
ContentFactory.NewContent(this.Collection + "/" + file.Name, file,
options);
mlSession.InsertContent(myDocument);

The document loads fine and I can query it with cq fine.

When I list all documents in cq using the link in the top left,
documents I've loaded with xdmp:load or xdmp:document-load come up
with something like:

/product/GR3410.xml - element book

But the documents I loaded with XCC come up with something like:

/product/633504414890149643.xml - text

Am I doing something wrong when I insert the document or is this
nothing to worry about?

Thanks,
Mattio
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to