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

XML / XSL

 
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 
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 
thanks, but i managed to do it from the xml file.I've got restriction and must used an xml file to display.

I've got another problem.

suppose ive got a checkbox in my web, when i click on the first element in the dropdownlist it must be disable and when i click on the second it must be enabled.

Im trying to make a loop but its not working, do u have any tip????



public void Page_Load(object sender, System.EventArgs e)
{
// Placer ici le code utilisateur pour initialiser la page

//string strAtt,strType,strName,strValue,strTemp,strPath,strId;

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

System.Xml.XmlTextReader xmlRdr;

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

strTemp="<SELECT style='LEFT: 480px; POSITION: absolute; TOP: 104px' WIDTH='130px' HEIGHT='8px' >";

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="<DIV>Label"+strAtt+"</DIV>";


Response.Write(strTemp);}

else if(strName=="Action")
{
strAtt=xmlRdr.GetAttribute("id");

xmlRdr.Read();

strValue=xmlRdr.Value;

strTemp="<OPTION selected>"+strValue+"</OPTION>";

Response.Write(strTemp);
}


}

}
Response.Write("</SELECT>");








/*
if(strName=="Action")
{
strAtt=xmlRdr.GetAttribute("id=1");

xmlRdr.Read();

strValue=xmlRdr.Value;


CheckBox1.Visible=true;
}

else if(strName=="Action")
{
strAtt=xmlRdr.GetAttribute("id=2");
xmlRdr.Read();

strValue=xmlRdr.Value;


strTemp=
CheckBox1=false;

}
*/






xmlRdr.Close();










}



here is my xml file>>>


<?xml version="1.0" encoding="utf-8" ?>

<booklist>
<subject id="sub1" name="Traitement du rejet">

<Action id="1">Aucun</Action>
<Action id="2">En Attente</Action>
<Action id="3">Retour Afdas</Action>
<Action id="4">Commentaire</Action>
</subject>
</booklist>

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 
AnswerRe: Why won't this XML code work? URGENT HELP NEEDED!!! Pin
Curtis Schlak.12-Jan-06 12:57
Curtis Schlak.12-Jan-06 12:57 
GeneralRe: Why won't this XML code work? URGENT HELP NEEDED!!! Pin
R0ssini12-Jan-06 13:03
R0ssini12-Jan-06 13:03 

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.