On Thu, 07 Jun 2007 22:56:11 -0700, obiwanjacobi
<obiwanjacobi@[EMAIL PROTECTED]
> wrote:
>On Jun 7, 2:41 pm, Jan Eliasen <elia...@[EMAIL PROTECTED]
> wrote:
>> It should work.
>It does! :-) Thanks very much.
Off course, and your're welcome :-)
>Can you also explain why adding "another level of indirection" works?
>My initial schema just had a root node with some attributes. Your
>solution has a root node and a child with the attributes. Why does one
>work and the other doesn't?
Baiscally, in your schema, you hadn't described in any way, how a
record was terminated. You had set the default record delimiter on the
root node, but you hadn't described any records that used that
delimiter. I did that.
>Another related question: Is it possible to split flat files into
>grouped records?
>I have this (other) file that has repeating identifiers in each line.
>
>[ID] [DATA]
>0001,Hello!
>0001,How are you?
>0002,Dear Sir,
>0002,In response...
>
>I would like to split this in two messages, one for each ID and each
>message would have two records. Is that possible or am I looking at
>writing my own disassembler component here...?
Well, this one is (potentially) more difficult than the previous one.
Are there ALWAYS exactly two lines? Or can there be some groups with
one record, some groups with ten records, etc.?
these are two very different problems, and the solutions are very
different, one being quite simple and the other being quite
not-so-simple :-)
Let me know what it is, and I can help you more.
--
eliasen, representing himself and not the company he works for.
Private blog: http://blog.eliasen.dk
Private email: jan@[EMAIL PROTECTED]


|