All Questions
Tagged with streamwriter xml
26
questions
0
votes
2
answers
170
views
How do I download an xml file written with StreamWriter as an xml file
I have an XML file written in C# using StreamWriter with this code:
String filename = Session.SessionID + ".xml";
String filepath = "h:\\root\\home\\mchinni-001\\www\\site1\\OUTFolder\\&...
0
votes
0
answers
25
views
XStream - data within a tag should be indented identically
I could use some help to get a better XML output. I hope to find a solution here! Couldn't find any solution for this.
That is my current output:
<java.util.Arrays_-ArrayList>
<a class=&...
0
votes
2
answers
128
views
I'm trying to simply append two different data types into my xml file and read them again, but I am getting an error
I'm using Winforms and I get the following error when I press the load button after having hit the save button:
InvalidOperationException: was not expected.
Here is my code:
private void save_Click(...
0
votes
0
answers
121
views
Changing from FileInfo to XElement and needing to stream the data
My old signature was
protected override bool SendFiles(ITransactionStep configuration, FileInfo xml)
Thus I was working with doing this
using (var blobStream = GetBlobStream(arg.Configuration, arg....
0
votes
0
answers
214
views
C# socket program multithreading and data exchange
I am trying get the server to receive a student ID from any client, it looks up the XML file to search and return the student's major like 'PHYSICS'.
Once a client receives the major of the student, ...
0
votes
0
answers
262
views
XElement with StreamReader/Writer slow over time
I have a 4.6 million line XML file. Each line represents an XML string. I wrote a simple app to shred the XML into a pipe delimited file. Over time my app gets slow, writing out a fraction of the ...
0
votes
2
answers
1k
views
Creating XML Document with StreamWriter from DB
So I got requested to have the option to download/create an XML file from a Database. The table contains a column with the raw XML message in it. User needs to be able to save the XML Doc for viewing. ...
0
votes
1
answer
475
views
C# streamwriter denies access to save xml file into MyDocuments
I created a little game with the option to save the character into an XML File, now I wanted the Savegame-Folder location to be at MyDocuments, but every time I try to save the XML I just get an ...
0
votes
1
answer
52
views
When I run I get an InvalidOperationException when I try to write out the XML file
I have a parent class PartNumber and two child classes PartNumberChild1 and PartNumberChild2. In my main a create a PartNumberContainer and added two child one objects and two child 2 objects, I ...
0
votes
2
answers
64
views
C# XML Father-Son update can not save
I'm trying to update an existing app.
I was asked previously to simply clean out an xml file for escape characters, which were coming to us, prior to them being pulled through to the company system. ...
0
votes
2
answers
63
views
Using XmlNodeList with several web services call
I am building a console application which calls 3 different web services. The first one call all the project with their projectsIds, projects status and project names.
The first web service get all ...
0
votes
1
answer
690
views
There is an error in XML document (0, 0). console application C#
I have a console application using web services. What I am trying to achieve its to extract several information about projects which works fine.
The web service GetProjectData() outputs several ...
0
votes
1
answer
159
views
Code returns XML and html of page as well
On a asp.net page I call the following function to output some data as XML to be downloaded as a spreadsheet.
public static void ToExcelStream(DataSet dsInput, string filename, string ProductName)
{
...
9
votes
3
answers
28k
views
Save file - xmlSerializer
I'm creating a method to serialize a file using this code:
public void Save(Object file, Type type, String path)
{
// Create a new Serializer
XmlSerializer serializer = new XmlSerializer(...
2
votes
1
answer
502
views
How to use XmlWriter to write non-well formed xml
First off, I don't like doing this. This isn't my choice.
I need to write information to an xml document. The simpleContent of the xml may contain &'s. I want these to written to the file as just ...