Don't change line in #text node

1. don't change line in #text node, error case:
http://www.dpawson.co.uk/java/despatcher.html
2. refactor: var rename
3. extract Setting.cs