Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



Updates to XML library. 

  • Fix issue with corruption in resulting XML, previously tag names would be corrupted with whatever is hanging around in memory. 
  • Merge windows and UNIX code, seemed silly to have two separate functions that are almost identical. 
  • Add new function to jBC, [XML.REMOVE.TAG.VALUE] 

New function: [XML.REMOVE.TAG.VALUE] 

This is a clone of [XML.GET.TAG.VALUE], it will locate a node using a valid XPATH string and return the value, it also removes the node from the source XML. [XML.GET.TAG.VALUE], will also locate and return a value using an XPATH string but will leave the source XML intact. 

Previous Release Behavior

Previously, Running the following example, 

        xml_tag = "firstname"
        text = "Greg"
        CRT "result_one_xml = XML.ADD.TEXT(" : xml_tag : ", ": text :")"
        result_one_xml = XML.ADD.TEXT(xml_tag, text)
        CRT "xml_tag    [":xml_tag:"]"
        CRT "text       [":text:"]"
        CRT "result_one_xml [":result_one_xml:"]"
        xml_tag = "lastname"
        text = "Cooper"
        CRT "result_two_xml = XML.ADD.TEXT(" : xml_tag : ", ": text :")"
        result_two_xml = XML.ADD.TEXT(xml_tag, text)
        CRT "xml_tag    [":xml_tag:"]"
        CRT "text       [":text:"]"
        CRT "result_two_xml [":result_two_xml:"]"

Would output 

        result_one_xml = XML.ADD.TEXT(firstname, Greg)
        xml_tag    [firstname]
        text       [Greg]
        result_one_xml [<firstname->Greg</firstname->]

        result_two_xml = XML.ADD.TEXT(lastname, Cooper)
        xml_tag    [lastname]
        text       [Cooper]
        result_two_xml [<lastnamee>Cooper</lastnamee>]

Both firstname and lastname tags have an invalid character on the end. 

Current Release Behavior

No corruption in tags 

Was this article helpful?