in reply to Re: A Question on a homebrew XML parser
in thread A Question on a homebrew XML parser
Please, please, please, read the spec! And use some existing validation tests, such as those which come with XML::Parser. What you are parsing is not XML, but what you think is XML.
2 exemples:
I haven't really analyzed your code in detail, but other things strike me as odd: why is DD a special case? I could probably go on.
I have a more general comment, please don't take it too personnaly, I really think you might want to think about it: you started the thread by saying that you wanted to keep your skills up. I believe you are not. Instead of hacking a clever, but useless and above all incorrect toy parser, I think your skills would benefit much more of doing a project properly. You can certainly try writing an XML parser, even though I think this might be a little too ambitious, but really, try doing it the right way: get the spec, write test cases (or even better, find existing ones), design your parser, and then write it, test it and start bragging about it ;--) Above all choose a softwrae development method and stick to it.
You seem to have a good command of Perl, now try to improve your general software engineering skills. Believe me this will be way more valuable for you than what you are doing here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A Question on a homebrew XML parser
by cyocum (Curate) on Feb 25, 2002 at 22:49 UTC |