Click here to Skip to main content
16,013,918 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXML syntax for && Pin
For_IT7-Jun-06 2:15
For_IT7-Jun-06 2:15 
AnswerRe: XML syntax for && Pin
Michael Dunn7-Jun-06 3:01
sitebuilderMichael Dunn7-Jun-06 3:01 
QuestionChecking for valid XML file structure Pin
conrado76-Jun-06 3:38
conrado76-Jun-06 3:38 
AnswerRe: Checking for valid XML file structure Pin
Stephan Samuel6-Jun-06 3:43
Stephan Samuel6-Jun-06 3:43 
AnswerRe: Checking for valid XML file structure Pin
BoneSoft10-Jun-06 18:49
BoneSoft10-Jun-06 18:49 
QuestionNeed Help in XML DocType Pin
Kiran Pinjala6-Jun-06 3:10
Kiran Pinjala6-Jun-06 3:10 
QuestionUpdating the xml file in asp.net Pin
Sandeep Akhare5-Jun-06 3:41
Sandeep Akhare5-Jun-06 3:41 
AnswerRe: Updating the xml file in asp.net Pin
Sandeep Akhare7-Jun-06 23:51
Sandeep Akhare7-Jun-06 23:51 
try
{

xdoc=new XmlDocument();
xdoc.Load(Server.MapPath("MyFile.xml"));
CreateXmlTableElement();



string LastStoredProcName="";

for(int index=0;index<lstbxmap.items.count;index++)
{
=""
="" string[]="" temp="LstBxMap.Items[index].Text.Split('-','-','">','#');
string TemplateCol=temp[0].ToString();
string MapValueLOC=temp[1].ToString();
string StoredProcName=temp[5].ToString();
int flag=0;
CharEnumerator Characters= StoredProcName.GetEnumerator();


while(Characters.MoveNext())
{
if(Characters.Current.Equals('$'))
{
flag=1;
break;
}
flag=0;
}

if(flag==0)
{
if(!StoredProcName.Equals(LastStoredProcName))
{
CreateXmlTableElement();
}


LastStoredProcName=StoredProcName;
// create a attribute to add in table tag having value as a Stored procedure as name
XmlAttribute QueryAttribute=xdoc.CreateAttribute("attribute","Storedprocedure","");
QueryAttribute.Value=StoredProcName;



xdoc.DocumentElement.AppendChild(xmlElement);

// add attribute to the table tag
xmlElement.SetAttributeNode(QueryAttribute);



// create element MappedField showing the mapped field of Template column with
// Attributes of location
XmlElement mapField=xdoc.CreateElement("MappedField");

// Append to root node
// xdoc.AppendChild(mapField);

// create a attribute to add in MappedField element having value as location
XmlAttribute AddressLoc=xdoc.CreateAttribute("attribute","Address","");
AddressLoc.Value=MapValueLOC;

XmlAttribute Value=xdoc.CreateAttribute("attribute","Value","");
Value.Value=TemplateCol;


xmlElement.AppendChild(mapField);

// add Attribute to the element
mapField.SetAttributeNode(Value);
mapField.SetAttributeNode(AddressLoc);

xdoc.Save(Server.MapPath("MyFile.xml"));
QuestionExporting to XML Pin
Ashraj19824-Jun-06 20:23
Ashraj19824-Jun-06 20:23 
AnswerRe: Exporting to XML Pin
Stephan Samuel6-Jun-06 3:39
Stephan Samuel6-Jun-06 3:39 
QuestionSave C++ Object to XML [modified] Pin
Rudy1023-Jun-06 7:47
Rudy1023-Jun-06 7:47 
AnswerRe: Save C++ Object to XML Pin
Eran Aharonovich10-Jul-06 7:23
Eran Aharonovich10-Jul-06 7:23 
QuestionHTML into XML Pin
Felipe Dalorzo2-Jun-06 6:49
Felipe Dalorzo2-Jun-06 6:49 
AnswerRe: HTML into XML Pin
Stephan Samuel2-Jun-06 7:37
Stephan Samuel2-Jun-06 7:37 
GeneralRe: HTML into XML Pin
led mike2-Jun-06 11:18
led mike2-Jun-06 11:18 
GeneralRe: HTML into XML Pin
Stephan Samuel2-Jun-06 11:39
Stephan Samuel2-Jun-06 11:39 
GeneralRe: HTML into XML Pin
led mike2-Jun-06 12:16
led mike2-Jun-06 12:16 
GeneralRe: HTML into XML Pin
Felipe Dalorzo4-Jun-06 4:17
Felipe Dalorzo4-Jun-06 4:17 
GeneralRe: HTML into XML Pin
Felipe Dalorzo4-Jun-06 4:16
Felipe Dalorzo4-Jun-06 4:16 
AnswerRe: HTML into XML Pin
Ed.Poore10-Jun-06 11:42
Ed.Poore10-Jun-06 11:42 
AnswerRe: HTML into XML Pin
Eran Aharonovich9-Jul-06 7:36
Eran Aharonovich9-Jul-06 7:36 
QuestionDisplaying nested children elements in DataGridView Pin
sepsep061-Jun-06 14:36
sepsep061-Jun-06 14:36 
Questioncan you tell me how to start with XML ? Pin
Mohammed Amine31-May-06 13:09
Mohammed Amine31-May-06 13:09 
AnswerRe: can you tell me how to start with XML ? Pin
George L. Jackson31-May-06 14:22
George L. Jackson31-May-06 14:22 
QuestionPROBLEM IN FILE PATH Pin
Rizwan Rathore31-May-06 8:28
Rizwan Rathore31-May-06 8:28 

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.