Click here to Skip to main content
16,005,169 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Xml parser C Pin
DavidNohejl2-May-07 11:51
DavidNohejl2-May-07 11:51 
QuestionXSD validation on recursive XML elements [modified] Pin
janBarP1-May-07 20:44
janBarP1-May-07 20:44 
AnswerRe: XSD validation on recursive XML elements Pin
Stefan Troschuetz1-May-07 21:32
Stefan Troschuetz1-May-07 21:32 
AnswerRe: XSD validation on recursive XML elements Pin
BoneSoft2-May-07 4:52
BoneSoft2-May-07 4:52 
GeneralRe: XSD validation on recursive XML elements Pin
Stefan Troschuetz2-May-07 5:04
Stefan Troschuetz2-May-07 5:04 
GeneralRe: XSD validation on recursive XML elements Pin
BoneSoft2-May-07 10:11
BoneSoft2-May-07 10:11 
QuestionHow to Add Node Values from external xml file Pin
srieen1-May-07 6:58
srieen1-May-07 6:58 
AnswerRe: How to Add Node Values from external xml file Pin
George L. Jackson1-May-07 12:32
George L. Jackson1-May-07 12:32 
ImportRow is a DataTable method. If you are talking about XmlDocument, you can use the ImportNode method:

using namespace System;
using namespace System::Xml;

int main(array<System::String ^> ^args)
{
String^ srcXml =
L"<country>"
L"<canada>"
L"<lakes>yyyy</lakes>"
L"</canada>"
L"</country>";

XmlDocument^ srcDoc = gcnew XmlDocument();
srcDoc->LoadXml(srcXml);

XmlNode^ srcNode = srcDoc->SelectSingleNode(
L"/country/canada/lakes");

if (srcNode == nullptr)
{
Console::WriteLine(L"'lakes' node not found!");
return -1;
}

String^ destXml =
L"<country>"
L"<india>"
L"<states>1</states>"
L"<states>2</states>"
L"</india>"
L"<america>"
L"<value>xxx</value>"
L"<value>xxx</value>"
L"<value>xxx</value>"
L"</america>"
L"<canada/>"
L"</country>";

XmlDocument^ destDoc = gcnew XmlDocument();
destDoc->LoadXml(destXml);

XmlNode^ importedNode = destDoc->ImportNode(srcNode, true);

XmlNode^ destNode = destDoc->SelectSingleNode(
L"/country/canada");

if (srcNode == nullptr)
{
Console::WriteLine(L"'canada' node not found!");
return -1;
}

destNode->AppendChild(importedNode);

Console::WriteLine(destDoc->OuterXml);

return 0;
}

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

GeneralRe: How to Add Node Values from external xml file Pin
srieen2-May-07 6:49
srieen2-May-07 6:49 
QuestionNewbie on writing xml web service. need some advice Pin
lior_s30-Apr-07 20:52
lior_s30-Apr-07 20:52 
Questionwhy my file not opened [modified] Pin
kalaveer29-Apr-07 20:49
kalaveer29-Apr-07 20:49 
AnswerRe: why my file not opened Pin
Stefan Troschuetz29-Apr-07 22:14
Stefan Troschuetz29-Apr-07 22:14 
AnswerRe: why my file not opened Pin
George L. Jackson30-Apr-07 16:15
George L. Jackson30-Apr-07 16:15 
Questionxslt query Pin
mhadamji26-Apr-07 22:30
mhadamji26-Apr-07 22:30 
AnswerRe: xslt query Pin
George L. Jackson27-Apr-07 12:37
George L. Jackson27-Apr-07 12:37 
AnswerRe: xml Pin
George L. Jackson25-Apr-07 23:50
George L. Jackson25-Apr-07 23:50 
GeneralRe: xml Pin
WhiteGirl2326-Apr-07 19:56
WhiteGirl2326-Apr-07 19:56 
QuestionImport XML into SQL Server using SSIS Pin
supD25-Apr-07 3:00
supD25-Apr-07 3:00 
QuestionProblem in storing URL in XML file Pin
Affan Toor23-Apr-07 21:47
Affan Toor23-Apr-07 21:47 
AnswerRe: Problem in storing URL in XML file Pin
Fatbuddha 123-Apr-07 23:19
Fatbuddha 123-Apr-07 23:19 
GeneralRe: Problem in storing URL in XML file Pin
Affan Toor24-Apr-07 0:43
Affan Toor24-Apr-07 0:43 
GeneralRe: Problem in storing URL in XML file Pin
Fatbuddha 124-Apr-07 0:46
Fatbuddha 124-Apr-07 0:46 
GeneralRe: Problem in storing URL in XML file Pin
Fatbuddha 124-Apr-07 0:52
Fatbuddha 124-Apr-07 0:52 
GeneralRe: Problem in storing URL in XML file Pin
George L. Jackson24-Apr-07 1:52
George L. Jackson24-Apr-07 1:52 
GeneralRe: Problem in storing URL in XML file Pin
Fatbuddha 124-Apr-07 2:44
Fatbuddha 124-Apr-07 2:44 

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.