private void process_constants( XmlNodeReader nodeReader, CompleteTemplate ThisCompleteTemplate )
{
// Read all the nodes
while ( nodeReader.Read() )
{
// Get the node name, trimmed and to upper
string nodeName = nodeReader.Name.Trim().ToUpper();
// If this is the inputs or constant start tag, return
if (( nodeReader.NodeType == XmlNodeType.EndElement ) && ( nodeName == "CONSTANTS" ))
{
return;
}
// If this is the beginning tag for an element, assign the next values accordingly
if (( nodeReader.NodeType == XmlNodeType.Element ) && ( nodeName == "ELEMENT" ) && ( nodeReader.HasAttributes ))
{
abstract_Element newConstant = process_element( nodeReader, -1 );
if (newConstant != null)
{
newConstant.isConstant = true;
ThisCompleteTemplate.Add_Constant(newConstant);
}
}
}
}