Title: Message
I do the following:
 
1. Parse your xml into DOM object called Document doc
2. col is your collection
3. foo.xml is your "plain text name"
 
XMLResource res = ( XMLResource )col.createResource( "foo.xml", "XMLResource" );
res.setContentAsDOM( doc.getDocumentElement() );
col.storeResource( res );
 
Said that, I create my xml programmaticaly. You may want to look for the methods in API that allow you to add XML file without parsing
 
Cheers,
 
Bob Stone
 
-----Original Message-----
From: Chance, Sam USA [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2003 4:45 PM
To: [email protected]
Subject: HOW TO SAVE PLAIN LANGUAGE FILE NAMES TO XINDICE ?

Can someone please help!?

 

I'm trying to programmatically store xml files to Xindice using plain language names for the files.  As it stands, when I save the resources to Xindice, it assigns a key value for the file name.  Can someone - please - tell me how to save with a plain text name?

 

Thank you!

Sam

Reply via email to