-----Original Message-----From: eLink Discussion: Development Discussion [mailto:development@elinkkc.opentext.com] Sent: Tuesday, April 08, 2003 9:08 AMTo: eLink RecipientSubject: Parsing XML in Oscript Parsing XML in Oscript Posted by IAEA_001User3 (Alcala-Soler, Francisco J) on 04/08/2003 09:07 AM Hi All,I am trying to read an XML file and obtain some values from it. I am not sure how to go about it.The file would contain something like:<elementA><elementB/><elementC attrC1="****">YYY</elementC></elementA>and I would like to grab the value "YYY" to further process it in my Oscript script.I am testing commands like:String xmlFile = "C:\myFile.xml"DOMParser xmlParser = DOMParser.New()Assoc result = xmlParser.Parse( xmlFile )DOMDocument xmlDocument = xmlParser.GetDocument()DOMNodeList xmlList = xmlDocument.GetElementsByTagName( "elementC" )DOMNode xmlNode = xmlList.Item(0)So far, so good. It looks like I have traversed the DOM object all the way to the correct node. However, an expression like <xmlNode.GetNodeValue> does not return the value "YYY" which I would like to get. I have tried to Cast() the node and other things, but I don't know my way around yet.Any help would be greatly appreciated.Curro