private void LoadXml(XmlElement element, ProfilePath path)
{
if (element.HasAttribute("value"))
{
string value = element.GetAttribute("value");
LoadValue(path, value);
}
foreach (XmlNode xmlnode in element.ChildNodes)
{
XmlElement child = xmlnode as XmlElement;
if (child != null)
{
LoadXml(child, new ProfilePath(path, XmlNormalizer.TagDecode(child.LocalName)));
}
}
}