Rename XML to lowercase Xml in classes and names for consistency
This commit is contained in:
1 parent
33618b4c97
commit
dd6b0416b6
20 files changed
+57
-57
No files matched your search
@@ -21,7 +21,7 @@ using System.Xml.XPath;
|
||||
|
||||
namespace VocaluxeLib.Xml
|
||||
{
|
||||
public class CXMLReader : CXmlReaderBase
|
||||
public class CXmlReader : CXmlReaderBase
|
||||
{
|
||||
private readonly XPathNavigator _Navigator;
|
||||
private readonly String _FilePath;
|
||||
@@ -32,7 +32,7 @@ namespace VocaluxeLib.Xml
|
||||
}
|
||||
|
||||
//Private method. Use OpenFile factory method to get an instance
|
||||
private CXMLReader(string uri)
|
||||
private CXmlReader(string uri)
|
||||
{
|
||||
_FilePath = uri;
|
||||
var xmlDoc = new XPathDocument(uri);
|
||||
@@ -44,11 +44,11 @@ namespace VocaluxeLib.Xml
|
||||
get { return _Navigator; }
|
||||
}
|
||||
|
||||
public static CXMLReader OpenFile(string fileName)
|
||||
public static CXmlReader OpenFile(string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
return new CXMLReader(fileName);
|
||||
return new CXmlReader(fileName);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace VocaluxeLib.Xml
|
||||
/// <summary>
|
||||
/// Uniform settings for writing XML files. ALWAYS use this!
|
||||
/// </summary>
|
||||
private readonly XmlWriterSettings _XMLSettings = new XmlWriterSettings
|
||||
private readonly XmlWriterSettings _XmlSettings = new XmlWriterSettings
|
||||
{
|
||||
Indent = true,
|
||||
Encoding = Encoding.UTF8,
|
||||
@@ -217,7 +217,7 @@ namespace VocaluxeLib.Xml
|
||||
/// <param name="rootNodeName">Name of the root node (overwrites default value specified by XmlRoot/XmlTypeAttributes which defaults to "root")</param>
|
||||
public void Serialize(string filePath, object o, string rootNodeName = null)
|
||||
{
|
||||
using (XmlWriter writer = XmlWriter.Create(filePath, _XMLSettings))
|
||||
using (XmlWriter writer = XmlWriter.Create(filePath, _XmlSettings))
|
||||
_Serialize(writer, o, rootNodeName);
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ namespace VocaluxeLib.Xml
|
||||
public string Serialize(object o, string rootNodeName = null)
|
||||
{
|
||||
MemoryStream result = new MemoryStream();
|
||||
using (XmlWriter writer = XmlWriter.Create(result, _XMLSettings))
|
||||
using (XmlWriter writer = XmlWriter.Create(result, _XmlSettings))
|
||||
_Serialize(writer, o, rootNodeName);
|
||||
result.Position = 0;
|
||||
return new StreamReader(result).ReadToEnd();
|
||||
|
||||
Reference in new issue
Block a user