
-----------------------------------
r0ssar00
Thu Nov 17, 2005 11:34 am

html like tags
-----------------------------------
im trying to create a library to be able to more easily create human readable config files, and im basing it on xml, hence the name xmllib
im having a problem identifying the names inside the tags (ie  where i need tag)
i created a function to handle this and it returns the name of the tag, but it will return  not tag, heres my code

fcn nameTag (raw : string) : string
    var name : string := raw
    var tag : = ""
    var firstSpace := 0
    for i : 1 .. length (name)
        if name (i) = ">" and firstSpace ~= 0 then
            tag := name (firstSpace + 1 .. i - 1)
        end if
        if name (i) = "