Click here to Skip to main content
15,912,072 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
mysorian wrote:
Nothing is stupid

Laugh | :laugh: So, how'd you call somebody who produced 53MB (!) ASPX web form due to buggy XSLT? (jup, I have my day!) Big Grin | :-D


So, does it mean that SP doesn't return XML? I basically told you to look at that link only IF it isn't ok Wink | ;)

mysorian wrote:
but it is not using the ExecuteStream method.


No it's not, bt it shows you how to make SP produce XML results. Btw I think you use ExecuteStream right way.

You can use ad-hoc SQL statements or you can also execute stored procedures that return XML. Consider the following stored procedure:

CREATE PROCEDURE dbo.GetEmployeesXml
AS
SELECT * FROM employees FOR XML AUTO
RETURN

This can be executed as follows:

SqlXmlCommand cmd = new SqlXmlCommand(NorthwindConnString);
cmd.RootTag = "Employees";
cmd.CommandText = "EXEC GetEmployeesXML";
XmlReader xr = cmd.ExecuteXmlReader();


I suspect ExecuteStream() fails because SP return non-XML data (some table or something like that).

If you can, try ExecuteReader() (and XmlReader instead of stream). That way you can be sure if problem is in SP or somewhere else. (If it fails than problem is probably in SP)


mysorian wrote:
ah! too many things under the hood
Unsure | :~
Is that your sig or do you say this to me? Big Grin | :-D

David

Never forget: "Stay kul and happy" (I.A.)
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 
GeneralRe: Invalid Characters with MSXML Pin
DavidNohejl25-Jan-05 10:36
DavidNohejl25-Jan-05 10:36 
GeneralRe: Invalid Characters with MSXML Pin
Anonymous25-Jan-05 10:42
Anonymous25-Jan-05 10:42 
GeneralRe: Invalid Characters with MSXML Pin
Insert Cool Screen Name Here25-Jan-05 10:45
Insert Cool Screen Name Here25-Jan-05 10:45 
GeneralRe: Invalid Characters with MSXML Pin
DavidNohejl25-Jan-05 11:24
DavidNohejl25-Jan-05 11:24 
GeneralSimple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 6:57
david@mindplay.com25-Jan-05 6:57 
GeneralRe: Simple Reports/ RTF output Pin
Mike Ellison25-Jan-05 8:27
Mike Ellison25-Jan-05 8:27 
GeneralRe: Simple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 9:01
david@mindplay.com25-Jan-05 9:01 
GeneralRe: Simple Reports/ RTF output Pin
DavidNohejl25-Jan-05 10:13
DavidNohejl25-Jan-05 10:13 
GeneralRe: Simple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 10:37
david@mindplay.com25-Jan-05 10:37 
GeneralRe: Simple Reports/ RTF output Pin
DavidNohejl25-Jan-05 11:21
DavidNohejl25-Jan-05 11:21 
GeneralRe: Simple Reports/ RTF output Pin
david@mindplay.com25-Jan-05 11:26
david@mindplay.com25-Jan-05 11:26 
QuestionHow to load data from XML String to tables Pin
Cuu24-Jan-05 6:00
Cuu24-Jan-05 6:00 
GeneralWSE 2.0 security... Pin
Jason Weibel21-Jan-05 10:56
Jason Weibel21-Jan-05 10:56 
Generalxml treeview using dataset Pin
ashushere21-Jan-05 8:17
ashushere21-Jan-05 8:17 
GeneralRe: xml treeview using dataset Pin
DavidNohejl21-Jan-05 12:19
DavidNohejl21-Jan-05 12:19 

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.