Examples

  • Create a notecard called Input and copy and paste the following contents:
<xml>
    <about>
        <description>
                            This is a StAX XML stream parser, 
                            with look-back and suitable for streams.</description>
   </about>
   <usage>
 
    wasStAX_GetNodeValue(string xmlStream, string node)
 
    where xmlStream is a a flat string containing the xml file and,
    node is a node containing the value you wish to extract.
 
   </usage>
</xml>
  • Create a script with the contents from the code-section below named Code: Notecard Configuration Reader.
  • Create a new primitive and drop both the script and the Input notecard into the primitive.
  • You may need to reset the scripts in the primitive if the notecard cannot be read properly.
  • Make sure you leave an empty space after the last line in the notecard.

The expected output, should be:

Object: This is a StAX XML stream parser, with look-back and suitable for streams. 
Object: wasStAX_GetNodeValue(string xmlStream, string node) where xmlStream is a a flat string containing the xml file and, node is a node containing the value you wish to extract. 

Index


secondlife/stax/examples.txt ยท Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.