Click here to Skip to main content
15,891,529 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Encounter error in XML Pin
DavidNohejl14-Jan-05 12:15
DavidNohejl14-Jan-05 12:15 
GeneralRe: Encounter error in XML Pin
Gregg Holter14-Jan-05 17:11
Gregg Holter14-Jan-05 17:11 
GeneralRe: Converting XML to STRING Pin
Gregg Holter12-Jan-05 19:25
Gregg Holter12-Jan-05 19:25 
GeneralRe: Converting XML to STRING Pin
DavidNohejl13-Jan-05 8:53
DavidNohejl13-Jan-05 8:53 
GeneralRe: Converting XML to STRING Pin
Gregg Holter13-Jan-05 15:27
Gregg Holter13-Jan-05 15:27 
GeneralStraight forward text or site Pin
Anonymous12-Jan-05 13:46
Anonymous12-Jan-05 13:46 
GeneralRe: Straight forward text or site Pin
mysorian14-Jan-05 11:17
professionalmysorian14-Jan-05 11:17 
GeneralGetting inner Xml values C# Pin
Sylesh11-Jan-05 10:18
Sylesh11-Jan-05 10:18 
hello ,

I have a problem in retreiving the innerXml values from an XML File . The File is pasted below and the method I use is also listed below .
I want to list out the values Sylesh1,Sylesh2,sylesh3........ sylesh9 to an
arrayList .
The Method I use is... below but somehow I cannot retirve the values under the Path. Please point out my errors ?

XmlDocument _Document = new XmlDocument ();
_Document.Load (FileName);
XmlElement _Root = _Document.DocumentElement ;
XmlNodeList _NodeList = _Document.GetElementsByTagName
("configuration/userNames/sylesh/add/listGridCustomizations/myListGrid");
if (_NodeList.Count > 0)
{
foreach (XmlNode _Node in _NodeList)
{
List.Add(_Node.Attributes.GetNamedItem ("value").InnerText);
}
}

Any help ? suggestions ?
or if I'm wrong please point out ?
thanks Sylesh


<configuration>
<configsections>
<sectiongroup name="userNames">
<sectiongroup name="sylesh">
<sectiongroup name="listGridCustomizations">





<usernames>
<sylesh>
<add key="IsCustomized" value="false">
<listgridcustomizations><mylistgrid>
<add key="Column0" value="Sylesh0">
<add key="Column1" value="Sylesh1">
<add key="Column2" value="Sylesh2">
<add key="Column3" value="Sylesh3">
<add key="Column4" value="Sylesh4">
<add key="Column5" value="Sylesh5">
<add key="Column6" value="Sylesh6">
<add key="Column7" value="Sylesh7">
<add key="Column8" value="Sylesh8">
<add key="Column9" value="Sylesh9">

<listgridcustomizations><wrwerwer>
<add key="Column0" value="Sylesh0">
<add key="Column1" value="Sylesh1">
<add key="Column2" value="Sylesh2">
<add key="Column3" value="Sylesh3">
<add key="Column4" value="Sylesh4">
<add key="Column5" value="Sylesh5">
<add key="Column6" value="Sylesh6">
<add key="Column7" value="Sylesh7">
<add key="Column8" value="Sylesh8">
<add key="Column9" value="Sylesh9">






Thanks
Sylesh

Sylesh

GeneralRe: Getting inner Xml values C# Pin
DavidNohejl11-Jan-05 22:29
DavidNohejl11-Jan-05 22:29 
GeneralRe: Getting inner Xml values C# Pin
Sylesh12-Jan-05 8:28
Sylesh12-Jan-05 8:28 
GeneralRe: Getting inner Xml values C# Pin
DavidNohejl12-Jan-05 9:51
DavidNohejl12-Jan-05 9:51 
Generallink in xsl Pin
x-trate10-Jan-05 6:04
x-trate10-Jan-05 6:04 
GeneralRe: link in xsl Pin
DavidNohejl10-Jan-05 8:22
DavidNohejl10-Jan-05 8:22 
GeneralHelp with XML Pin
dotnetquery9-Jan-05 18:07
dotnetquery9-Jan-05 18:07 
GeneralWebservices Pin
rgoyal7-Jan-05 18:21
rgoyal7-Jan-05 18:21 
GeneralUsing XML to develop portal. Pin
ruthra30-Dec-04 21:22
ruthra30-Dec-04 21:22 
GeneralRe: Using XML to develop portal. Pin
DavidNohejl31-Dec-04 0:48
DavidNohejl31-Dec-04 0:48 
Generala little OT: SVGViewer and WinXP SP2 Pin
fuel2run29-Dec-04 22:04
fuel2run29-Dec-04 22:04 
GeneralWebservice question Pin
steve_rm29-Dec-04 5:12
steve_rm29-Dec-04 5:12 
GeneralRe: Webservice question Pin
Javier Lozano1-Jan-05 13:57
Javier Lozano1-Jan-05 13:57 
GeneralRead any Xml schema file and write it on a xml file with data's automatically written according to their appropriate datatypes using c# Pin
dhol28-Dec-04 23:53
dhol28-Dec-04 23:53 
GeneralXML to develop portal. Pin
ruthra28-Dec-04 15:30
ruthra28-Dec-04 15:30 
GeneralXPath navigation with namespaces Pin
Steven Campbell28-Dec-04 9:32
Steven Campbell28-Dec-04 9:32 
GeneralRe: XPath navigation with namespaces Pin
DavidNohejl28-Dec-04 10:16
DavidNohejl28-Dec-04 10:16 
GeneralRe: XPath navigation with namespaces Pin
Steven Campbell28-Dec-04 12:33
Steven Campbell28-Dec-04 12:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.