Question about TfsXMLDocument!
JScript:
var myXML = TfsXMLDocument.Create;
myXML.loadFromFile("c:\\info.xml");
showMessage(myXML.Root.items[0].text);
My Question is why if the info.xml content is
<?xml version="1.0" encoding="GB2312"?>
<info>
<name jcc/>
<age 23/>
</info>
it works well.
But if the info.xml content is
<?xml version="1.0" encoding="GB2312"?>
<info>
<name>jcc</name>
<age>23</age>
</info>
then myXML.Root.items[0].text = Null
var myXML = TfsXMLDocument.Create;
myXML.loadFromFile("c:\\info.xml");
showMessage(myXML.Root.items[0].text);
My Question is why if the info.xml content is
<?xml version="1.0" encoding="GB2312"?>
<info>
<name jcc/>
<age 23/>
</info>
it works well.
But if the info.xml content is
<?xml version="1.0" encoding="GB2312"?>
<info>
<name>jcc</name>
<age>23</age>
</info>
then myXML.Root.items[0].text = Null