xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "STONE,ROBERT (HP-SanDiego,ex1)" <bob.st...@hp.com>
Subject RE: HOW TO SAVE PLAIN LANGUAGE FILE NAMES TO XINDICE ?
Date Thu, 15 May 2003 00:12:00 GMT
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:sgchance@nps.navy.mil]
Sent: Wednesday, May 14, 2003 4:45 PM
To: xindice-users@xml.apache.org
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

Mime
View raw message