i want to tag the " book index" like
the " book index" like
-----------------------------------------------------------------------------------------------------------
INDEX
AC (Advance Audio Coding), 5, 15
Automated Self-Optimization of Cellular Networks, 144
Automatic frequency planning. See AFP
Automatic neighbor relation. See ANR
Backup service coverage, 193–4, 196
BAL (BCCH Allocation List), 114, 213
Balancing, 23, 25, 43, 115, 156, 169, 173, 175, 184, 186–91, 217
techniques, 188, 250, 255
differential, 233–4, 236, 243, 248, 251
procedure, 76, 177–8
requests, 171–2
Band, 11–13, 99, 191–3, 213Bandwidth, 8, 13, 81, 94, 97–8, 100, 181–2
------------------------------------------------------------------------------------------
i just want to find the indent level using c# coding, also i want tag the index like this
the first grouping end with enter mark. i want group the index using their indent level, pleaseguide me to do this process please

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 19, 2011, 6:21 AM EDT
please try the following when generating your XML file:
XmlTextWriter writer = new XmlTextWriter("myxmlfile.xml",null);
writer.Formatting = Formatting.Indented;
Please do not forget to mark "Accepted Answer".
Sam HobbsRank #107 · 20.5K reputationPosted Oct 19, 2011, 1:43 PM EDT
I am sorry, but I do not understand the question. What do you need help with? Do you need help reading the file or writing it or do you need help designing it or something else?
Mahesh ChandRank #1 · 393.4K reputationPosted Oct 19, 2011, 3:01 PM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 19, 2011, 4:34 PM EDT