Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following examples illustrate how XML elements are parsed in BrightScript:

 

...

Code Block
titleExample 1
<tag1>This is example text</tag1>

...

  • Name = tag1
  • Attributes = Invalid
  • Body = roString containing "This is example text"

 

Code Block
titleExample 2
<tag2 caveman="barney"/>
  • Name = tag2
  • Attributes = roAssociativeArray with one entry, {caveman, barney}
  • Body = Invalid

 

If the tag contains other tags, the body will be of the type roXMLList.

...