I discovered that not all script issues can be fixed in the scripts themselves. At some point you will run into the fact that Magiscipt relies on reading html lines one by one and processing a single line that heavily relies on the removal of tags. This removal however does not work when tags are multi line, like in the following example:
The tag removal functionality of Magicscript cannot handle this multi line setup. If you debug the IMDB.COM (Actors) script at the point where it tries to determine the 'profession' you will see what I mean.
You have to use a combination of FINDLINE, FIND and READNEXTLINE. It's really a little bit killing but not impossible.
There are 2 big things that are missing in MagicScript: 1. proceeding with string variables such as afterfirst, between or pos 2. userdefined subroutines that can be called as subs
Maybe Ale gives us these possibilities as christmas gift... this century
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse
You have to use a combination of FINDLINE, FIND and READNEXTLINE. It's really a little bit killing but not impossible.
There are 2 big things that are missing in MagicScript: 1. proceeding with string variables such as afterfirst, between or pos 2. userdefined subroutines that can be called as subs
Maybe Ale gives us these possibilities as christmas gift... this century
The script is using FINDLINE, FIND and READNEXTLINE as a construct and still it does not work because the tags are not removed correctly. Basically the whole concept of READNEXTLINE looks dated to me. What kind of xml parsing is this ? When I need to read all lines until the closing tag and concatenate the result in order to do some cleanup that sounds like 'killing' yes.