Re: My Regexp XML Parser -> Structured Perl Data, Cut & Paste Version, No Module's (Vol I)




<robic0> wrote in message news:on2pq15rrr0jo0nefh9ju5lfaattoeu1jp@xxxxxxxxxx
> On 23 Dec 2005 15:31:03 -0800, "Bart Van der Donck" <bart@xxxxxxxxxx>
> wrote:
>>
>>It's very hard to run your code. You are messing up the line ends in
>>your post. I 've uploaded a corrected version to
>>www.dotinternet.be/temp/code.txt.
>>
> Please don't correct and post code I've written on this.
> I'm taking it to a higher level every day. My thoughts on
> this won't take it where you want to go. Its my idea
> and I'll do just about anything I want with it! The code
> strain emminates from my creativity, I gave it birth and
> I will progress it. Email me, or post code on specific xml
> that doesen't work.

I don't think anyone wants your garbage.

Now how about the part where you start dealing with the fact that xml is not
constrained to single lines. Your little toy has a lot of trouble with:

<!-- comment out this section
<oldroot>
<oldstuff>oops!</oldstuff>
</oldroot>
-->

and also:

<myplace
city="here"
province="there"/>

Maybe you should learn XML *before* trying to write this parser of yours.

Matt


.



Relevant Pages