Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<string> createTagTree()
- {
- string text = OpenFileAndExtract(this.fileName);
- List<string> tagList = new List<string>();
- string node = "";
- for (int index = 0; index < text.Length; index++)
- {
- if (text[index].Equals('<'))
- {
- for (int index2 = index + 1; index2 < text.Length; index2++)
- {
- if (!text[index2].Equals(' ') && !text[index2].Equals('>'))
- {
- node = node + text[index2];
- }
- if (text[index2].Equals('>') || text[index2].Equals(' '))
- {
- break;
- }
- }
- node = Regex.Replace(node, @"\t|\n|\r|", "");
- tagList.Add(node);
- node = "";
- }
- }
- return tagList;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement