G
Guest
I'm trying to pass info between two components using xml. To produce the xml
I'm using an xmltextwriter, and in the receiving end I use an xmldocument and
its Load method to load the output of the writer.
If I use an intermedary file I have no problem, but if I use a MemoryStream
(one of its purposes is to avoid the need for temporary files, right?) then I
get an error telling me that no root element was found. How could this be?!!
Does anyone have an example of using a stream to pass xml around?
While I'm in the subject, what would be the "correct" (or most appropriate)
way of passing the xml data between components? a string? a stream? an
xmlreader? an xmldocument?
I'm using an xmltextwriter, and in the receiving end I use an xmldocument and
its Load method to load the output of the writer.
If I use an intermedary file I have no problem, but if I use a MemoryStream
(one of its purposes is to avoid the need for temporary files, right?) then I
get an error telling me that no root element was found. How could this be?!!
Does anyone have an example of using a stream to pass xml around?
While I'm in the subject, what would be the "correct" (or most appropriate)
way of passing the xml data between components? a string? a stream? an
xmlreader? an xmldocument?