XML Tage name
Hi,
I have three line table coded with XML. I need to check row 2 and 3 XML tag name match with row 1 XML tag name.
Entire Line 1 is coded by a single line XML tag name. Though we can take name from row 2 for now. I have a huge list for every header name relevant XML tag name.

I tried to get every tag name separated by tab. But it throws wrong tag name. Please suggest. Thanks.
var para=app.selection[0];
var lines=para.contents.split('\r');
var no_of_lines = lines.length;
for(line = 0; line < no_of_lines; line++)
{
var x = lines[line].split('\t');
var mySelWords = x.length;
for(i=0;i<x.length;i++){
alert(x+" ------> "+para.lines[line].words.associatedXMLElements[0].markupTag.name)
}
}
I have attached the sample file.
Thanks,
K
Message was edited by: kk kk
