Click here to Skip to main content
16,011,608 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionhow to do this Pin
Sandeep Akhare7-Nov-06 0:36
Sandeep Akhare7-Nov-06 0:36 
Generalattaching css file to xml file Pin
V.7-Nov-06 0:23
professionalV.7-Nov-06 0:23 
AnswerRe: attaching css file to xml file Pin
praveen pandey7-Nov-06 0:57
praveen pandey7-Nov-06 0:57 
GeneralRe: attaching css file to xml file Pin
V.7-Nov-06 1:09
professionalV.7-Nov-06 1:09 
GeneralRe: attaching css file to xml file Pin
V.7-Nov-06 1:44
professionalV.7-Nov-06 1:44 
GeneralRe: attaching css file to xml file Pin
Haissam4-Dec-06 3:42
Haissam4-Dec-06 3:42 
QuestionDetermine Ancestral Relationship in XmlNodeList Pin
Edmundisme6-Nov-06 10:40
Edmundisme6-Nov-06 10:40 
AnswerRe: Determine Ancestral Relationship in XmlNodeList [modified] Pin
George L. Jackson6-Nov-06 15:56
George L. Jackson6-Nov-06 15:56 
The following code may not satisfy exactly what you need. Anyway, using XPath, you can query a given node to list its ancestors. The last node in the ancestor node list is the immediate parent of the given node.

String^ xml =
L"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
L"<years>"
L" <year y=\"2003\">"
L" <month m=\"1\">"
L" <day d=\"4\"/>"
L" </month>"
L" </year>"
L" <year y=\"2002\">"
L" <month m=\"2\">"
L" <day d=\"5\"/>"
L" </month>"
L" </year>"
L" <year y=\"2001\">"
L" <month m=\"3\">"
L" <day d=\"6\"/>"
L" </month>"
L" </year>"
L"</years>";

XmlDocument^ doc = gcnew XmlDocument;
doc->LoadXml(xml);

XmlNode^ day5 =
doc->SelectSingleNode(L"/years/year/month/day[@d='5']");

XmlNodeList^ ancestors = day5->SelectNodes(L"ancestor::*");

for each (XmlNode^ ancestor in ancestors)
{
Console::WriteLine(L"{0} is an ancestor",
ancestor->Name);
}


-- modified at 10:54 Tuesday 7th November, 2006
Questionregexp bug in icuin26.dll? Pin
orion45003-Nov-06 8:49
orion45003-Nov-06 8:49 
AnswerRe: regexp bug in icuin26.dll? [modified] Pin
George L. Jackson3-Nov-06 11:20
George L. Jackson3-Nov-06 11:20 
Questionxsd schema cascading Pin
Russell Jones2-Nov-06 23:46
Russell Jones2-Nov-06 23:46 
AnswerRe: xsd schema cascading Pin
George L. Jackson8-Nov-06 12:20
George L. Jackson8-Nov-06 12:20 
GeneralRe: xsd schema cascading Pin
Russell Jones21-Nov-06 3:43
Russell Jones21-Nov-06 3:43 
QuestionXSLT:copy-of element Pin
ybasha2-Nov-06 5:21
ybasha2-Nov-06 5:21 
QuestionXSLT:copy-of Pin
ybasha2-Nov-06 5:15
ybasha2-Nov-06 5:15 
AnswerRe: XSLT:copy-of Pin
Dustin Metzgar2-Nov-06 5:24
Dustin Metzgar2-Nov-06 5:24 
GeneralRe: XSLT:copy-of Pin
ybasha2-Nov-06 5:30
ybasha2-Nov-06 5:30 
QuestionCreate anchors in an XHTML document generated with XSLT Pin
ISmith30-Oct-06 7:47
ISmith30-Oct-06 7:47 
AnswerRe: Create anchors in an XHTML document generated with XSLT Pin
George L. Jackson30-Oct-06 13:53
George L. Jackson30-Oct-06 13:53 
GeneralRe: Create anchors in an XHTML document generated with XSLT Pin
ISmith31-Oct-06 6:16
ISmith31-Oct-06 6:16 
QuestionWeb Service needed for Sharepoint Pin
dgibson553130-Oct-06 3:08
dgibson553130-Oct-06 3:08 
QuestionInsert one value in XSLT file Pin
shapper27-Oct-06 9:00
shapper27-Oct-06 9:00 
AnswerRe: Insert one value in XSLT file Pin
Dustin Metzgar27-Oct-06 9:17
Dustin Metzgar27-Oct-06 9:17 
Questionxpath during xsl transfomation Pin
Savas Cilve27-Oct-06 4:24
Savas Cilve27-Oct-06 4:24 
AnswerRe: xpath during xsl transfomation Pin
led mike27-Oct-06 5:16
led mike27-Oct-06 5:16 

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.