BrightSign BrightScript 3.0 Reference Manual User Manual
Page 24

19
•
When applied to XML, which is technically case sensitive, the Dot Operator is still case insensitive. If you wish to
perform a case-sensitive XML operation, use the member functions of the roXMLElement/roXMLList objects.
Attribute Operator
The “@” Attribute Operator can be used with an roXMLElement instance to return a named attribute. Though XML is case
sensitive, the Attribute Operator is always case insensitive. If the Attribute Operator is used with an roXMLList instance, it
will only return a value if that list contains exactly one element.
Examples
/>
Given the XML in the above example.xml file, then the following code will return an roXMLList instance with three entries:
rsp=CreateObject("roXMLElement")
rsp.Parse(ReadAsciiFile("example.xml"))
? rsp.photos.photo