Re: Help with System.IO.Stream

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Peter Rilling (peter_at_nospam.rilling.net)
Date: 02/26/05


Date: Fri, 25 Feb 2005 21:43:44 -0800

A stream just contains a sequence of bytes, it has nothing to do with XML.
XML is simply the format of those bytes. Either you pass a stream to the
method or you must pass some class that interprets the XML such as an
XmlTextReader or XmlDocument.

"Michael H" <Michael@Strawberry.Gatorade.yum> wrote in message
news:4q0021psvjc5ioucfacb5g7me0ot29oif3@4ax.com...
>
>
> I need to pass my XML string as a stream to a method;
>
> eg.
>
> public SubmitResult ClickToRecord.Submit(
> Stream stream,
> ConflictResolutionPolicy policy,
> out ProgramDetails[] programsInConflict
> )
>
>
>
> How can/should I pass this XML string via a stream to a method such as
> this ??
>
> Thanks,
>
> Michael Hughes - Silverton, Oregon
> http://wou.ath.cx/Trivia
> http://wou.ath.cx/AmateurRadio



Relevant Pages

  • Re: Stream.Write / Encoding problem
    ... I would test converting xml string to base64 and sending that then ... request and you at least has a starting point. ... > request stream and write my XML string to it. ...
    (microsoft.public.dotnet.framework)
  • Re: Really basic newbie question
    ... > from the format of the output. ... XML writing nonsense, and it's just too much work. ... memory stream and read it into a string.... ... public class PostCodeValidation_Type ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Data table text I/O package?
    ... regular and homogenuous data in mind. ... Given a data format much like in, ... I said XML is good for parsing of data if you cannot tell in advance that the data stream is totally free of errors. ... However, if some data item contains a separator due to an error, you loose the whole stream, or use the wrong data without noticing this, in the worst case. ...
    (comp.lang.ada)
  • RE: Unparsed Interchange
    ... but have you tried setting your stream position back ... from the received one (flat recieved -> xml out with some new parameters). ... // Get the original filename ... string filename = inmsg.Context.Read("ReceivedFileName", ...
    (microsoft.public.biztalk.general)
  • Error message when opening a recordset with a strem containing xml
    ... I have a problem when trying to open a recordset with a stream including xml ... System.String schemaText = null; ...
    (microsoft.public.data.ado)