Function Additions to EEBAX... Please?

new topic     » topic index » view thread      » older message » newer message

I'm trying to use EEBAX, and make it easier to use. Maybe it's already easy
and I just need to sit down and study the docs. If so, lemme know.
Otherwise...

Here's the beginning of my EEBAX plug-in/wrapper code... Parslow, you
available? :)

-- xml wrapper
sequence xmlContext

xmlContext = ""

function xml_get_xml(sequence filename)
-- xml_get_xml loads an xml file hierarchy into a sequence
sequence xml
 xml = {}
 return xml
end function

function xml_get_data(sequence path)
-- xml_get_data gets the data located in the hierarchy path specified
-- if path[1] = "/" then use path set by context
-- path could be { "TopMostLevel" , "ChildOfTML" , "ChildOfCOTML" ,
"ChildOfCOCOTML" }
end function

function xml_set_context(sequence context)
-- xml_set_context sets the context for future calls to xml_get_data
-- context could be { "TopMostLevel" , "ChildOfTML" , "ChildOfCOTML" }
-- then a path of "/ChildOfCOCOTML" would actually return
"TML/COTML/COCOTML/COCOCOTML"
atom success
 success = (1=2)
 if valid_path(context) then
  xmlContext = context
  success = (1=1)
 end if
 return success
end function

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu