Question: My HTML line is like this

```

li a name="1:2" in die autem tertia apparuit homo veniens de castris Saul
veste conscissa et pulvere aspersus caput et ut venit ad David
cecidit super faciem suam et adoravit

```

I want the output as

```

1:2 in die autem tertia apparuit homo veniens de castris Saul
veste conscissa et pulvere aspersus caput et ut venit ad David
cecidit super faciem suam et adoravit

```

Now i am getting the output as

```

in die autem tertia apparuit homo veniens de castris Saul
veste conscissa et pulvere aspersus caput et ut venit ad David
cecidit super faciem suam et adoravit

```

number is missing

I am using this condition:

```
foreach (HtmlNode node in doc.DocumentNode.SelectNodes("//li"))
{
    //coding
}

```

I am storing the HTML contents in SQLite database.

How can I get the values of attributes?

Answer: 
Use `GetAttributeValue` to get value of *name* attribute:

```
foreach (HtmlNode node in doc.DocumentNode.SelectNodes("//li")){

    string liName = node.GetAttributeValue("name", ""));

}

```
You have to use GetAttributeValue to get values.