I'm trying to use XMLParser (amiga) and i'm a bit confused.
I'm using example included in the archive, I have read the Docs but...
I can achieve some usefull parsing stuffs following "testsimple.hws"
but i can't parse some very basics stuffs like get the value between 2 markers
Code: Select all
<test>hello world</test>
no success.
i have write a function to handle that
Code: Select all
Function String_get_Between(src$,start$,stop$)
Local StartPointer, Stop ,Result
StartPointer = FindStr(src$,start$)+StrLen(start$)
Result = MidStr(src$,StartPointer,FindStr(MidStr(src$,Startpointer,StrLen(src$)),stop$))
Return(result)
EndFunction
Degugprint(String_get_Between("<test>hello world</test>","<test>","</test>"))
of course, i want to use the Plugin.
To be honnest, bouncing XMLParser doc to Luaexpat example is even more confusing.
Which callback can we use with this Plugins ? it is only startelement,endelement,comment
or can i use all described in luaexpat ? excluding default which is recognised as a Native keyword by hollywood.
Dominique.