Click here to Skip to main content
15,915,864 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXML datatype in sql server 2005 Pin
Revathij27-Jul-07 0:27
Revathij27-Jul-07 0:27 
AnswerRe: XML datatype in sql server 2005 Pin
Naji El Kotob28-Jul-07 11:06
Naji El Kotob28-Jul-07 11:06 
GeneralRe: XML datatype in sql server 2005 Pin
Revathij7-Aug-07 0:20
Revathij7-Aug-07 0:20 
Questionwriting XML in C#.net Pin
anumadhu26-Jul-07 21:16
anumadhu26-Jul-07 21:16 
QuestionCreate XML File Pin
Maynka26-Jul-07 18:56
Maynka26-Jul-07 18:56 
QuestionXmlElement Question Pin
rbreault26-Jul-07 12:15
rbreault26-Jul-07 12:15 
QuestionNeed help with an xPath question Pin
Grapes-R-Fun26-Jul-07 11:17
Grapes-R-Fun26-Jul-07 11:17 
AnswerRe: Need help with an xPath question Pin
George L. Jackson26-Jul-07 14:01
George L. Jackson26-Jul-07 14:01 
You use parent::node():

using namespace System; 
using namespace System::Xml;
 
int main(array<System::String ^> ^args)
{
	String^ xmlString = 
		"<root>"
		"  <parent name=\"Mom\">"
		"    <kid>Mike</kid>"
		"    <kid>Rose</kid>"
		"  </parent>"
		"</root>";
 	
	XmlDocument^ xmlDoc = gcnew XmlDocument;
	xmlDoc->LoadXml(xmlString);
 
	XmlNodeList^ children = xmlDoc->SelectNodes("/root/parent/kid");
 
	for each (XmlNode^ child in children)
	{
		//XmlNode^ parent = child->ParentNode;
 
		XmlNode^ parent = child->SelectSingleNode("parent::node()");
 
		if (parent != nullptr)
		{
			Console::WriteLine("{0}'s parent is good old {1}.", child->InnerText, 
				parent->Attributes->GetNamedItem("name")->Value);
		}
 		
	}
 
    return 0;
}


"We make a living by what we get, we make a life by what we give." --Winston Churchill

GeneralRe: Need help with an xPath question Pin
Grapes-R-Fun26-Jul-07 14:45
Grapes-R-Fun26-Jul-07 14:45 
QuestionXML from file with special letters Pin
gruberdominik26-Jul-07 2:38
gruberdominik26-Jul-07 2:38 
AnswerRe: XML from file with special letters Pin
Michael Dunn26-Jul-07 7:50
sitebuilderMichael Dunn26-Jul-07 7:50 
GeneralRe: XML from file with special letters Pin
led mike26-Jul-07 8:29
led mike26-Jul-07 8:29 
GeneralRe: XML from file with special letters [modified] Pin
gruberdominik26-Jul-07 22:15
gruberdominik26-Jul-07 22:15 
GeneralRe: XML from file with special letters Pin
Michael Dunn27-Jul-07 9:55
sitebuilderMichael Dunn27-Jul-07 9:55 
QuestionXML Pin
Gyan Prakash25-Jul-07 21:44
Gyan Prakash25-Jul-07 21:44 
AnswerRe: XML Pin
George L. Jackson25-Jul-07 23:54
George L. Jackson25-Jul-07 23:54 
QuestionHow to update a parameter value which has same parameter name in the same section. Pin
zxc8925-Jul-07 20:33
zxc8925-Jul-07 20:33 
AnswerRe: How to update a parameter value which has same parameter name in the same section. [modified] Pin
George L. Jackson25-Jul-07 23:48
George L. Jackson25-Jul-07 23:48 
QuestionSelecting the unique names of the elements in XML Pin
Rocky#25-Jul-07 19:18
Rocky#25-Jul-07 19:18 
QuestionHow to Handle Inline Markup Elements in XSLT Pin
Nick Rioux25-Jul-07 8:45
Nick Rioux25-Jul-07 8:45 
AnswerRe: How to Handle Inline Markup Elements in XSLT Pin
George L. Jackson25-Jul-07 17:11
George L. Jackson25-Jul-07 17:11 
GeneralRe: How to Handle Inline Markup Elements in XSLT Pin
Nick Rioux26-Jul-07 1:29
Nick Rioux26-Jul-07 1:29 
Questionreading xml schema file and generate xml Pin
D.Sridhar25-Jul-07 8:45
D.Sridhar25-Jul-07 8:45 
QuestionAccess table to XML [modified] Pin
kallileo23-Jul-07 21:19
kallileo23-Jul-07 21:19 
QuestionCreating an XmlNode / XPathNavigator object From Schema. Pin
Tristan Rhodes22-Jul-07 23:25
Tristan Rhodes22-Jul-07 23:25 

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.