Questions tagged [xmltextwriter]

Represents a writer that provides a fast, non-cached, forward-only way of generating streams

Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files containing XML data that conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.

http://msdn.microsoft.com/en-us/library/system.xml.xmltextwriter%28v=vs.110%29.aspx

120 questions
0
votes
2 answers

I want to edit xml file

I have modified the structure of d xml file. i want to edit value of visible
user428747
  • 307
  • 2
  • 7
  • 22
0
votes
1 answer

XMLDocument, XMLTextWriter and HttpWebResponse Class will not work in .NET Core project

I am trying to integrate A console app project into to a.netcore project. In my console app the project does exactly what I want it to do and build and run perfectly well but when copied into the .net core web application when I try to add the…
Dev
  • 1,780
  • 3
  • 18
  • 46
0
votes
1 answer

How to write xml data into multiple files by checking file size

I'm creating a xml sitemap! There is a limit of 50k urls or 10MB size limit. Is there a way to check the size of file and write to a new xml file when a size limit of 10MB is reached? I'm using XmlTextWriter(C#) to create xml files
chuckyCheese
  • 369
  • 2
  • 4
  • 14
0
votes
1 answer

c# serialization xmlwriter stringwriter out of memory for large objecthelp

I am managing a large project and need to serialize and send an object in xml format. The object is ~130 mb. (NOTE: I did not write this project, so making edits outside of this method, or drastically changing the architecture is not an option. …
jo phul
  • 639
  • 1
  • 9
  • 29
0
votes
3 answers

Save XML like XmlTextWriter but with DOM

When I build a XML in C# using XmlDocument, and I want to save to XML to file, including the encoding information, I use XmlTextWriter, as below: using (StringWriter swr = new StringWriter()) { using (XmlTextWriter xtw = new…
Pascal
  • 2,944
  • 7
  • 49
  • 78
0
votes
1 answer

How do I display a Registered Trademark symbol (®) using VB.NET?

I have taken over support of an application at the company I work for. All of a sudden, the customer wants to be able to enter a registered trademark in a name field. The symbol, using ALT+0174, is being saved correctly, but the app is not…
LDWisdom
  • 111
  • 3
  • 16
0
votes
2 answers

XmlTextWriter in xamarin for android and iOS

I have some proprietary code that I am trying to compile in a xamarin project using Xamarin studio for mac. One of the classes uses System.Xml.XmlTextWriter. I am getting the following error: Error CS0012: The type `System.Xml.XmlTextWriter' is…
Jason Ridge
  • 1,868
  • 15
  • 27
0
votes
1 answer

Dealing with XmlTextWriter and null node

I have some code that create xml file on the fly. Sometimes the node has a value and sometimes not. I need to get open and closing tags 12:00 or even there is no value but I can't find a solution. where the value is empty…
Elidotnet
  • 291
  • 3
  • 18
0
votes
2 answers

How to replace encoding=utf-8 in the xml header with an empty string using XmlTextWriter?

I am using XmlTextWriter in C# to generate XML's from CSV's and in the result XML I am getting the following header and the problem is to replace this encoding=utf-8 with an empty string so that the header…
AnkitSablok
  • 3,021
  • 7
  • 35
  • 52
0
votes
3 answers

How do I generate the following Xml using XmlWriter class in C#?

I want to generate an XML of the following format using XmlWriter class in C# -:
AnkitSablok
  • 3,021
  • 7
  • 35
  • 52
0
votes
1 answer

trying to use XmlTextWriter and format a date time value

I am trying to convert a row of data from our database values into a xml file. I am using the c# .net xmlTextWriter. Everything is fine but I cannot format the date time value for some reason. Below is the code I have tried using a…
user3636272
  • 71
  • 1
  • 10
0
votes
0 answers

How to Merge two Columns Data in one Column in c#

I am making a xlsx to xml convertor windows form app in c# i am getting a input ".xlsx" file and exporting a ".xml" file using "XmlTextWriter" method.I want to merge my two columns of Excel Sheet Named as "Date" and "Time" in One Column of "Date and…
0
votes
1 answer

Calling close on passed in member StringWriter to XMLTextWriter

I found some code that was not correctly wrapping XMLTextWriter and StringWriter with the using clauses. As I'm correcting it, I stumbled on a interesting question: do I have to explicitly add calls to Close() on each writer or does XMLTextWriter…
tatmanblue
  • 1,176
  • 2
  • 14
  • 30
0
votes
0 answers

XmlTextWriter output file does not export all content C

I have a web service client that pull some information successfully. It's a Windows form application and the output is pulled in a textBox, which is correct. Here you have part of my code: if (GetData != null && GetData.Length > 0) { …
A arancibia
  • 281
  • 4
  • 5
  • 19
0
votes
0 answers

Split datagridview into datasets for creation of XML file with xmltextwriter

I have a datagridview table with basic address information. From this I want to create an xml file with all the addresses in it. But I need to order them based on the country. So the "Address" tag should first be filled with all customers from…
Giancarlo
  • 377
  • 2
  • 6
  • 16