|
There's already a standard for mapping SQL names onto XML element names; No need to reinvent the wheel. Visit www.sqlx.org, and read the working draft of the SQL/XML standard. The mapping rules are defined in part 7.
Dare Obasanjo, in his comment, makes mention of the System.Xml.XmlConvert class in the .NET Framework. Judging by the example he gives, that class followes the SQL/XML naming rules, and that doesn't surprise me as Microsoft is one of the participants in the SQL/XML standards process.
|