Title: Message

Bob,

 

Thank you for the feedback.  I was looking everywhere for the process, but stumbled across it in the AddDocument.java in the src folders.  I was doing it all programmatically, but I was using null in the first parameter of the createResource method  - which prompts Xindice to generate a unique ID.  I was reading the APIs but I must have missed it in the Collection class.

 

Plus, I’m a newbie so I trip a lot!

 

Thank you!

Sam

 

-----Original Message-----
From: STONE,ROBERT (HP-SanDiego,ex1) [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, May 14, 2003 4:12 PM
To: '[email protected]'
Subject: RE: HOW TO SAVE PLAIN LANGUAGE FILE NAMES TO XINDICE ?

 

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