Questions tagged [xmlwriter]

System.Xml.XmlWriter class is part of .NET framework that provides non-cached, forward-only way to generate streams or files that contain XML data.

Documentation:

489 questions
3
votes
2 answers

Tracking namespace declarations with XMLWriter

I'm working on an XML webservice (in PHP!), and in order to do things 'right', I want to use XMLWriter instead of just concatinating strings and hoping for the best. I'm using XML namespaces everywhere using ->startElementNS and ->writeElementNS.…
Evert
  • 93,428
  • 18
  • 118
  • 189
3
votes
3 answers

XDocument Saving Error in Mono "This XmlWriter does not accept Text at this state Prolog."

I am trying to save an xml document, and I have been trying to get my code to work but mono is spitting out a very strange error. I have given the file it is trying to save to full ownership. An example would be group.test.test to "Hello…
3
votes
3 answers

How can I select a xml element based on some attribute and write it back complete in another file

I'm reading an svg/xml with XmlTextReader and I want to write just some of its elements back in a new svg/xml file
Raphael Isidro
  • 932
  • 10
  • 19
3
votes
1 answer

XmlWriterSettings, XmlTextWriter, XmlWriter not formatting output?! No new lines, no indentation

Using .Net 3.5 SP1 in VS2008 I have a XmlDocument and have tried writing it to file: using (XmlTextWriter tw = new XmlTextWriter(outXmlFileName, System.Text.Encoding.UTF8)) { tw.Formatting = Formatting.Indented; tw.Indentation = 3; …
markmnl
  • 11,116
  • 8
  • 73
  • 109
3
votes
1 answer

PHP XMLWriter: What parameters do I need to pass to XMLWriter::writeDtdEntity to generate a nested entity DTD declaration as described?

I want to generate a nested entity DTD declaration on top of an XML document with XMLWriter. I started with just string-building code w/o XMLWriter which illustrates the desired output as well:
pdameasap
  • 46
  • 5
3
votes
3 answers

install XMLReader module extension ubuntu

Im working with a plugin that requires XMLReader, and XMLWriter PHP modules to be installed. So I need to activate the DOMDocument, XMLReader, and XMLWriter PHP modules. So far i have tried : sudo apt install php-xmlwriter apparently is installed…
Alejo_Blue
  • 603
  • 3
  • 12
  • 25
3
votes
1 answer

Writing XML attributes and namespace declarations in a specific order

I am trying to make an XML file with a root element: So I have an element Command a namespace namespaceURI a prefix urn and finally an attribute string with name complete a value true and no…
3
votes
1 answer

Generate trx file through code

I want to manually generate TRX file through for my code. Is there any program which will be used for this purpose. If not then how to do it?
meetjaydeep
  • 1,752
  • 4
  • 25
  • 39
3
votes
1 answer

Read/Write large XMLs without using too much memory in PHP

I'm trying to query some very large XML files (up to several gig), check them for being well-formed, and write them to hard disk. Seems easy, but as they are so large I can not have a whole document in the memory. Therefore my question is: How can I…
Marco
  • 550
  • 2
  • 6
  • 22
3
votes
1 answer

How to control prefixes of namespaces in XML document generated by XmlWriter - generated XAML with x:Type markup extension

I am trying to generate XAML from XElements.