Click here to Skip to main content
15,916,180 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionxpath Pin
Matthew Hazlett30-Jan-06 6:41
Matthew Hazlett30-Jan-06 6:41 
AnswerRe: xpath Pin
George L. Jackson10-Feb-06 6:29
George L. Jackson10-Feb-06 6:29 
Questiontransforming XML to HTML Pin
maheshfour30-Jan-06 0:52
maheshfour30-Jan-06 0:52 
QuestionNeed Java Code For Validating The XML agaianest XSD which includes other xsd's Pin
venu neppalli27-Jan-06 1:56
venu neppalli27-Jan-06 1:56 
Questionquestiona bout XmlDocument Pin
abstarsss21-Jan-06 19:23
abstarsss21-Jan-06 19:23 
QuestionNewspaper View Styles Pin
cpod21-Jan-06 8:56
cpod21-Jan-06 8:56 
AnswerRe: Newspaper View Styles Pin
Dmitry Khudorozhkov14-Feb-06 6:04
Dmitry Khudorozhkov14-Feb-06 6:04 
QuestionBinding an Xml file with a DropDown Control, URGENT!!!! Pin
ajmal419-Jan-06 20:26
ajmal419-Jan-06 20:26 
I'm getting some problem to bind my DropDown control with an xml file...

I made an example using xmlTextReader displaying it in a table format. its working...

But i need to display data in my dropdown control using xmlTextReader....

please help

here is my example coding...

private void Page_Load(object sender, System.EventArgs e)
{
// Placer ici le code utilisateur pour initialiser la page
string strAtt,strType,strName,strValue,strTemp,strPath;

strPath=Server.MapPath("list.xml");

System.Xml.XmlTextReader xmlRdr;

xmlRdr=new
System.Xml.XmlTextReader(strPath);

strTemp="<table border=1 width=100%><tr><th width=150px>ISBN No.</th><th>Book Name</th></tr>";

Response.Write(strTemp);

while(xmlRdr.Read())

{strType=Convert.ToString(xmlRdr.NodeType);

strName=xmlRdr.Name;

if(strType=="Element")
{
if(strName=="subject")
{
strAtt=xmlRdr.GetAttribute("name");

strTemp="<tr><td colspan=2 align='left' bgcolor='pink'>"+strAtt+"</td></tr>";


Response.Write(strTemp);}

else if(strName=="book")
{
strAtt=xmlRdr.GetAttribute("isbn");

xmlRdr.Read();

strValue=xmlRdr.Value;

strTemp="<tr><td>"+strAtt+"</td><td>"+strValue+"</td></tr>";

Response.Write(strTemp);
}
}
}
Response.Write("</table>");

xmlRdr.Close();





}

and now how will i change this code to display in a dropdown control????

-- modified at 3:10 Friday 20th January, 2006
AnswerRe: Binding an Xml file with a DropDown Control, URGENT!!!! Pin
Javier Lozano21-Jan-06 10:41
Javier Lozano21-Jan-06 10:41 
GeneralRe: Binding an Xml file with a DropDown Control, URGENT!!!! Pin
ajmal423-Jan-06 19:14
ajmal423-Jan-06 19:14 
GeneralRe: Binding an Xml file with a DropDown Control, URGENT!!!! Pin
naveen_sharma30-Jan-06 6:39
naveen_sharma30-Jan-06 6:39 
Questionrequire code using xsd file to validate xml file Pin
angel_yoyo19-Jan-06 14:48
angel_yoyo19-Jan-06 14:48 
Questionxml feed Pin
jphuphilly18-Jan-06 7:41
jphuphilly18-Jan-06 7:41 
AnswerRe: xml feed Pin
tarasn23-Jan-06 0:00
tarasn23-Jan-06 0:00 
QuestionXmlNamespaceManager.. Why? Pin
dmchappell18-Jan-06 5:44
dmchappell18-Jan-06 5:44 
AnswerRe: XmlNamespaceManager.. Why? Pin
Curtis Schlak.18-Jan-06 15:55
Curtis Schlak.18-Jan-06 15:55 
GeneralRe: XmlNamespaceManager.. Why? Pin
dmchappell19-Jan-06 6:11
dmchappell19-Jan-06 6:11 
QuestionSQLXMLBULKLOAD Pin
mipooo17-Jan-06 19:21
mipooo17-Jan-06 19:21 
QuestionUsing XML/XSL to generate C++/C#/... structs/enums Pin
Andre xxxxxxx16-Jan-06 9:17
Andre xxxxxxx16-Jan-06 9:17 
AnswerRe: Using XML/XSL to generate C++/C#/... structs/enums Pin
Dustin Metzgar2-Mar-06 3:12
Dustin Metzgar2-Mar-06 3:12 
QuestionWhy won't this XML code work? URGENT HELP NEEDED!!! Pin
R0ssini12-Jan-06 11:50
R0ssini12-Jan-06 11:50 
AnswerRe: Why won't this XML code work? URGENT HELP NEEDED!!! Pin
R0ssini12-Jan-06 11:53
R0ssini12-Jan-06 11:53 
GeneralRe: Why won't this XML code work? URGENT HELP NEEDED!!! Pin
R0ssini12-Jan-06 11:56
R0ssini12-Jan-06 11:56 
GeneralRe: Why won't this XML code work? URGENT HELP NEEDED!!! Pin
R0ssini12-Jan-06 12:48
R0ssini12-Jan-06 12:48 
GeneralRe: Why won't this XML code work? URGENT HELP NEEDED!!! Pin
maheshfour30-Jan-06 0:58
maheshfour30-Jan-06 0:58 

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.