|
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Collections;
namespace SimpleParser
{
public class TypeMappingReader
{
public System.Collections.Hashtable Read()
{
Hashtable hash = new Hashtable();
XmlDocument doc = new XmlDocument();
doc.Load(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("SimpleParser.TypeMapping.xml"));
XmlNodeList listaNos = doc.GetElementsByTagName("type");
IEnumerator enu = listaNos.GetEnumerator();
while (enu.MoveNext())
{
XmlNode node = (XmlNode)enu.Current;
hash.Add(node.Attributes["name"].Value, node.Attributes["mapsTo"].Value);
}
return hash;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
He is a software developer based on Brazil. His main interests are Software architecture, Requirements Engineering and coding. He is a MCP and MCAD developer. If you want to get in contact, please send an e-mail to andre.betim@gmail.com or access his company website
www.plugtecnologia.com