/// <summary>Derrived classes may decide that the element should not be written. For example, the text element shouldn't be written if it's empty.</summary>
publicvoidWriteElement(XmlTextWriterwriter)
publicvirtualboolShouldWriteElement()
{
{
//Write any element who has a name.
//Save previous culture and switch to invariant for writing