blob: 4e3e9506a36f5ceb257e0c2b38b8608a32f9e89d [file] [edit]
puts "============"
puts "OCC23864"
puts "============"
puts ""
###################################################################################################################
# An & symbol is read incorrectly from a XML Ocaf file
###################################################################################################################
#Open an Ocaf XML document
Open [locate_data_file bug23864_testAmp.xml] D
#Get name attribute (containing an & symbol)
GetName D 0:1
#Get an array of strings (containing an & symbol)
set info [GetExtStringArray D 0:1]
if { [regexp "\&" $info] != 1 } {
puts "Error : An \& symbol is read incorrectly from a XML Ocaf file"
} else {
puts "OK : An \& symbol is read correctly from a XML Ocaf file"
}