xml parser

Previous topic - Next topic

phaelax

Now that I think about it, it shouldn't technically matter because the parser reads character by character. Still need to figure out what locks it up.

Kitty Hello

Yes, 1024 characters (incl \0 character) for readline.

You can fix that with:
READLINE ...
IF LEN(line$) = 1023
INC line$, READLINE
ENDIF


Because, once Readline detects a \n character, it removes it and also removes a \r before the \n. So if the length=1023, the \n was not there.

Kitty Hello

Make a debug version, then press pause - x = INSTR() returns -1 and you assign j = x later. It's an infinite loop.
Also make sure you can handle attribute contents that can contain "=" characters.

bigtunacan

Is the latest version of the code available somewhere?

MrTAToad

I dont think the code has been updated in a while, but its on the first page.

phaelax

At the end of august in 2011 I left for a year with the army.  If people still have an interest in this, I'll see about finishing it.

bigsofty

Welcome back!  ;) Funny enough I actually just got my hands on a project that uses this expensively, so any additions would be appreciated!
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)