Example #1
0
        private static UserValue GetUserValueFromReader(XmlReader reader)
        {
            UserValue userValue = new UserValue();

            if (reader.MoveToFirstAttribute())
            {
                userValue.Title = reader.Value;
            }
            if (reader.MoveToNextAttribute())
            {
                userValue.Value = reader.Value;
            }
            return(userValue);
        }
Example #2
0
        private static Dictionary <string, string> GetUserValuesFromUserData(XmlReader reader, List <string> Data)
        {
            Dictionary <string, string> userValues = new Dictionary <string, string>();

            if (reader.ReadToFollowing("UserData"))
            {
                if (reader.ReadToDescendant("UserValue"))
                {
                    do
                    {
                        UserValue temp = GetUserValueFromReader(reader);
                        if (CompareTitle(temp.Title, Data))
                        {
                            userValues.Add(temp.Title, temp.Value);
                        }
                    } while (reader.ReadToNextSibling("UserValue"));
                }
            }

            return(userValues);
        }