Click here to Skip to main content
16,004,906 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Problem with displaying parent node and child node attribute in c#-- need urgent Pin
George L. Jackson16-Nov-07 1:58
George L. Jackson16-Nov-07 1:58 
QuestionHow to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
Vishnu Narayan Mishra15-Nov-07 0:36
Vishnu Narayan Mishra15-Nov-07 0:36 
AnswerRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
pmarfleet15-Nov-07 10:33
pmarfleet15-Nov-07 10:33 
GeneralRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
Vishnu Narayan Mishra15-Nov-07 19:16
Vishnu Narayan Mishra15-Nov-07 19:16 
GeneralRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
pmarfleet15-Nov-07 19:41
pmarfleet15-Nov-07 19:41 
QuestionHow to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 20:19
Vishnu Narayan Mishra14-Nov-07 20:19 
AnswerRe: How to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 22:23
Vishnu Narayan Mishra14-Nov-07 22:23 
Questionhow to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra14-Nov-07 2:03
Vishnu Narayan Mishra14-Nov-07 2:03 
hello every one... I am tried to retrieve a node FieldsToSupport/FieldToSuport in a xml..
Following is the structure of my xml file.....there can be multiple <FieldToSuport> into

<FieldsToSupport> in a <ScreenToSupport>. Also <ScreenToSupport> can be multiple..
------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinkInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<LinkToolId>0</LinkToolId>
<LinkToolVersion>1.0.1</LinkToolVersion>
<ScreensToSupport>
<ScreenToSupport>
<ScreenUniqueId>e7dfee93-14f0-4775-baef-c7246dfae902</ScreenUniqueId>
<SupportItems>
<ScreenSupportItem>
<LinkDate>2007-10-25T11:47:10.515625+05:30</LinkDate>
<LinkAuthor>SUBHASH\Login Subhash</LinkAuthor>
<LinkURL>C:\Documents and Settings\Login Subhash\Desktop\iframeCopy.html</LinkURL>
<LinkText>Updating Adding New Row</LinkText>
<OptionalSupportInstruction />
<RefId>3</RefId>
</ScreenSupportItem>
</SupportItems>
<FieldsToSupport>
<FieldToSupport>
<Caption>Blank</Caption>
<Url>Blank</Url>
<Label>NewField1</Label>
<HtmlName />
<HtmlId />
<FieldUniqueId>15b85c2b-83ca-44ec-8741-22a4dc64f64d</FieldUniqueId>
<LinkHref>http://careers.msn.com/</LinkHref>
<InnerHTML>Careers &amp;amp; Jobs</InnerHTML>
<OuterHTML>&lt;A href="http://careers.msn.com"&gt;Careers &amp;amp;

Jobs&lt;/A&gt;</OuterHTML>
<PopupHTML />
<FieldSupportItems />
</FieldToSupport>
<FieldToSupport>
<Caption>Blank</Caption>
<Url>Blank</Url>
<Label>Screen2</Label>
<HtmlName />
<HtmlId />
<FieldUniqueId>97d5c477-a5f4-4496-8084-19a537d85e29</FieldUniqueId>
<LinkHref>http://slate.com/</LinkHref>
<InnerHTML>Slate Magazine</InnerHTML>
<OuterHTML>&lt;A href="http://slate.com"&gt;Slate Magazine&lt;/A&gt;</OuterHTML>
<PopupHTML />
<FieldSupportItems />
</FieldToSupport>
</FieldsToSupport>
<Label>label3</Label>
<ScreenMatchProbabilityLevel>172.0934</ScreenMatchProbabilityLevel>
</ScreenToSupport>
</ScreensToSupport>
</LinkInformation>
------------------------------------------------------------
and following is my code in c#. I am try to fetch node <ScreenToSupport> by its ScreenUniqueId

attribute..

string strScreenId = Convert.ToInt32(Request.QueryString["ScreenId"]);
string strXPath =

"/LinkInformation/ScreensToSupport/ScreenToSupport/[ScreenUniqueId='"+strScreenId+"']";

XmlNode newParent = doc.SelectSingleNode(strXPath);
------------------------------------------------------------
but it giving error "Expression must evaluate to a node-set." new parent comming null here..
------------------------------------------------------------
after that I have to fetch corressponding

"FieldsToSupport/FieldToSupport[FieldUniqueId='"+strFieldId+"']" of <ScreenToSupport> node..
How can fecth FieldsToSupport/FieldToSupport need help any ones..
Please reply me soon sir. I will very thankful for th
AnswerRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike14-Nov-07 5:02
led mike14-Nov-07 5:02 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra19-Nov-07 20:03
Vishnu Narayan Mishra19-Nov-07 20:03 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike20-Nov-07 5:39
led mike20-Nov-07 5:39 
Questionhow can we go through such kinds of tag in xml like <PopupHTML /> Pin
Vishnu Narayan Mishra13-Nov-07 23:17
Vishnu Narayan Mishra13-Nov-07 23:17 
AnswerRe: how can we go through such kinds of tag in xml like Pin
George L. Jackson14-Nov-07 1:53
George L. Jackson14-Nov-07 1:53 
QuestionHow to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
Vishnu Narayan Mishra13-Nov-07 2:17
Vishnu Narayan Mishra13-Nov-07 2:17 
AnswerRe: How to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
led mike13-Nov-07 6:18
led mike13-Nov-07 6:18 
GeneralRe: How to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
Vishnu Narayan Mishra13-Nov-07 22:24
Vishnu Narayan Mishra13-Nov-07 22:24 
QuestionHow can I go through all child nodes and attributes of child nodes of a parent node.. Pin
Vishnu Narayan Mishra12-Nov-07 22:22
Vishnu Narayan Mishra12-Nov-07 22:22 
QuestionHow can I go through all child nodes and attributes of child nodes of a parent node.. [modified] Pin
Vishnu Narayan Mishra12-Nov-07 21:14
Vishnu Narayan Mishra12-Nov-07 21:14 
QuestionEdititng the tag of XML Pin
SreejithAchutan8-Nov-07 17:04
SreejithAchutan8-Nov-07 17:04 
AnswerRe: Edititng the tag of XML Pin
led mike9-Nov-07 5:19
led mike9-Nov-07 5:19 
Questionhow to append node with attributes after an node in XML + C# [modified] Pin
Vishnu Narayan Mishra7-Nov-07 20:52
Vishnu Narayan Mishra7-Nov-07 20:52 
AnswerRe: how to append node with attributes after an node in XML + C# Pin
pmarfleet8-Nov-07 9:51
pmarfleet8-Nov-07 9:51 
QuestionSending XML Soap Messages, C# Pin
AssemblySoft5-Nov-07 6:18
AssemblySoft5-Nov-07 6:18 
AnswerDouble post Pin
pmarfleet5-Nov-07 6:54
pmarfleet5-Nov-07 6:54 
QuestionXML problems Pin
kurt194-Nov-07 23:31
kurt194-Nov-07 23:31 

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.