I'm working on a class to create an xml file. I need to create this using a special way. I define my tags in different classes with a const containing the value. I do this to have a global definition of the tags.
Now I want to create two functions to complete the tags with angle brackets. These functions should be available for every class. Something simular to toString()
The code below was my initial thought but I need some help.
Can anyone help me?
Now I want to create two functions to complete the tags with angle brackets. These functions should be available for every class. Something simular to toString()
The code below was my initial thought but I need some help.
Can anyone help me?
Code:
public abstract class XMLFunctions
{
public virtual string StartXML()
{
return "<"+?+">";
}
public virtual string EndXML()
{
return "</"+?+">";
}
}
public class XMLMsg:XMLFunctions
{
public const string TAG = "ROOTNODE";
public class HDR
{
.............
Comment