I have a simple question:
How do I config tab as a delimiter in the <field-separator></field-separator> Tag?
I tryed :
<field-separator><![CDATA[	]]></field-separator>
<field-separator><![CDATA[	]]></field-separator>
<field-separator>\t</field-separator>
<field-separator> </field-separator> (tab inside the tag)
<field-separator>	</field-separator>
Until now, nothing worked.
Thanks,
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Back in December (2003) we had a similar dilemma. In a nutshell, the flat2xml stage doesn't support tab delimited text. I had to modify the Babeldoc source myself and rebuild Babeldoc. I posted my solution back then in the hopes that it would get incorporated back into CVS (and it apparently hasn't).
FWIW, is anyone interested in incorporating this simple fix back into the Babeldoc code? I'm sure others might be interested in processing tab-delimited text.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a simple question:
How do I config tab as a delimiter in the <field-separator></field-separator> Tag?
I tryed :
<field-separator><![CDATA[	]]></field-separator>
<field-separator><![CDATA[	]]></field-separator>
<field-separator>\t</field-separator>
<field-separator> </field-separator> (tab inside the tag)
<field-separator>	</field-separator>
Until now, nothing worked.
Thanks,
Paul
Hmmm... I don't know. Can you place some kind of debug statement in the java class:
com.babeldoc.conversion.flatfile.FlatFileConverter
line 190. Print the separator...
Back in December (2003) we had a similar dilemma. In a nutshell, the flat2xml stage doesn't support tab delimited text. I had to modify the Babeldoc source myself and rebuild Babeldoc. I posted my solution back then in the hopes that it would get incorporated back into CVS (and it apparently hasn't).
You can see my solution at:
https://sourceforge.net/forum/forum.php?thread_id=992723&forum_id=190909
I hope this helps.
-Mitch
FWIW, is anyone interested in incorporating this simple fix back into the Babeldoc code? I'm sure others might be interested in processing tab-delimited text.
This fix is in the code base....
Paul: try the example that Mitch gives:
<field-separator>\t</field-separator>
If that does not work - do the println, and let me
know how that goes.
Sorry the delay, I was away for a couple of days...
Yes, this works fine now.
Thank you very much for your help!
And yes, I used the src-release 1.2.1 and not the code base. So thats why the fix was not in the source.
Again: Thanks!