Click here to Skip to main content
15,892,005 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralIs XML 3.0 is faster than XML 2.0 Pin
santu1-Feb-05 18:50
santu1-Feb-05 18:50 
GeneralProblems with a well formed XML Pin
Rekha Patel1-Feb-05 16:35
Rekha Patel1-Feb-05 16:35 
GeneralRe: Problems with a well formed XML Pin
Christian Graus1-Feb-05 17:08
protectorChristian Graus1-Feb-05 17:08 
GeneralRe: Problems with a well formed XML Pin
Christian Graus1-Feb-05 17:10
protectorChristian Graus1-Feb-05 17:10 
QuestionHow to add a datasource as a sub node in XML file Pin
Rekha Patel31-Jan-05 8:08
Rekha Patel31-Jan-05 8:08 
AnswerRe: How to add a datasource as a sub node in XML file Pin
DavidNohejl31-Jan-05 8:20
DavidNohejl31-Jan-05 8:20 
GeneralRe: How to add a datasource as a sub node in XML file Pin
Rekha Patel31-Jan-05 9:01
Rekha Patel31-Jan-05 9:01 
GeneralRe: How to add a datasource as a sub node in XML file Pin
DavidNohejl31-Jan-05 9:44
DavidNohejl31-Jan-05 9:44 
hi,
Of course you can let dataset do lot of work for for you! you can use
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatasetclasswritexmltopic4.asp">WriteXml(XmlWriter) </a>[<a target=_blank title='New Window' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatasetclasswritexmltopic4.asp">^</a>]<br />
overloaded method to write columns and all into XmlWriter at once. Bt yes, you would have to write your Query element by yourself...
example:
XmlTextWriter w = new XmlTextWriter(filename);
w.WriteElementStart("query");
ds.WriteXml(w);
w.WriteElementEnd();
w.Close();

It's not exact code - just idea how to do that... I don't know exact method names and arguments from heart... Blush | :O I think this way it should work...

As for XmlDocument, sorry. I forgot you can load XML into it with XmlReader, bt AFAIK you can't write into it with XmlWriter. My fault.

hmm or you can save dataset into file, than load it to XmlDocument and than you can create XmlDocumentFragment from it. Next step is to append Criteria node to Query element - It suppose to have Query also loaded in (another) XmlDocument - probably less efficient solution than the first one ( with XmlTextWriter).Unsure | :~

David

Never forget: "Stay kul and happy" (I.A.)
GeneralThanks a mil!!! Worked like a magic Pin
Anonymous31-Jan-05 14:02
Anonymous31-Jan-05 14:02 
GeneralHelp with converting Dataset to ADO schema..please! Pin
Dankarmy30-Jan-05 8:26
Dankarmy30-Jan-05 8:26 
GeneralUnicode encoding problem Pin
teo_xp29-Jan-05 2:27
teo_xp29-Jan-05 2:27 
GeneralRe: Unicode encoding problem Pin
teo_xp29-Jan-05 2:29
teo_xp29-Jan-05 2:29 
GeneralRe: Unicode encoding problem Pin
teo_xp29-Jan-05 2:30
teo_xp29-Jan-05 2:30 
GeneralRe: Unicode encoding problem Pin
DavidNohejl29-Jan-05 2:56
DavidNohejl29-Jan-05 2:56 
GeneralRe: Unicode encoding problem Pin
teo_xp29-Jan-05 10:45
teo_xp29-Jan-05 10:45 
GeneralRe: Unicode encoding problem Pin
DavidNohejl29-Jan-05 12:53
DavidNohejl29-Jan-05 12:53 
GeneralRe: Unicode encoding problem Pin
teo_xp30-Jan-05 3:14
teo_xp30-Jan-05 3:14 
GeneralXML serialisation Pin
Member 157171627-Jan-05 22:11
Member 157171627-Jan-05 22:11 
GeneralXML 's Question Pin
jzb26-Jan-05 14:00
jzb26-Jan-05 14:00 
GeneralSQLXML3.0 Question Pin
mysorian26-Jan-05 11:59
professionalmysorian26-Jan-05 11:59 
GeneralRe: SQLXML3.0 Question Pin
DavidNohejl26-Jan-05 12:41
DavidNohejl26-Jan-05 12:41 
GeneralRe: SQLXML3.0 Question Pin
mysorian26-Jan-05 13:08
professionalmysorian26-Jan-05 13:08 
GeneralRe: SQLXML3.0 Question Pin
DavidNohejl26-Jan-05 13:38
DavidNohejl26-Jan-05 13:38 
GeneralRe: SQLXML3.0 Question Pin
mysorian26-Jan-05 17:58
professionalmysorian26-Jan-05 17:58 
GeneralInvalid Characters with MSXML Pin
Insert Cool Screen Name Here25-Jan-05 10:14
Insert Cool Screen Name Here25-Jan-05 10:14 

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.