Getting error when reading the XML

hi i try with some to create a XML file in ax through code.and i got successed.then again i try to read that xml it is not getting any error but output not comming.

static void XMLReadVendorList(Args _args)
{
XMLDocument doc;
XMLNode
rootNode,NodeVend,NodeName,NodeAddr,NodeCurrency,NodeCredit,NodeAmount
,NodeTransDate,NodeDueDate;
XMLParseError xmlError;
int i;

// Read the XML Document
doc = new XMLDocument();
//doc.async(FALSE);
doc.load(“C:\VendorList.xml”);

// Verify Document Structure
xmlError = doc.parseError();

if(xmlError && xmlError.errorCode() != 0)
{
throw error(strFmt(“Error: %1”,xmlError.reason()));
}

// Parsing document contents
rootNode = doc.documentElement();

// Get all Vendor information from XML document tags (and remove
it)
NodeVend = rootNode.selectSingleNode("//Vendor");
NodeName = rootNode.selectSingleNode("//VendName");
NodeAddr = rootNode.selectSingleNode("//VendAddr");
NodeCurrency = rootNode.selectSingleNode("//VendCurr");
NodeCredit = rootNode.selectSingleNode("//VendCredit");
NodeAmount = rootNode.selectSingleNode("//VendAmountCurr");
NodeTransDate = rootNode.selectSingleNode("//VendTransDate");
NodeDueDate = rootNode.selectSingleNode("//VendDueDate");

// From here you can use the retrieved information to insert the
data into a temporary table or
// process the data to obtain results
// Print gathered information from XML file
info(rootNode.text());
}

please give me any suggestions

Your code works for me - of course it also depends on the input file. Can you show your VendorList.xml? Do you have any text nodes there?

By the way (it’s not related to your problem), you should really check the return value of the load() method.