C
Christian Westerlund
Hi.
I want to use XMLTextWriter & Reader because I heard that they are
faster and don't allocate the entire xml-file in memory like XMLDom do.
However, the reader and writer don´t seem to work well together because
I get a xmlException when I try to read a stream that I just have
written to. Is there any way to read and write simultanously without
using XMLDom?
My other problem is that I want to be able to append data to an existing
xml-file with XMLTextWriter but when I do that the data is saved
after the end of the root element, like this:
<CarRegister version="1">
<Car name="Volvo">134000</Car>
<Car name="FIAT">16400</Car>
</CarRegister>
<Car name="FIAT UNO">13000</Car>
Therefore my xml-file is not well-formed.
Do anyone have any idea, I would really want to use something faster
than XMLDom.
/Christian
I want to use XMLTextWriter & Reader because I heard that they are
faster and don't allocate the entire xml-file in memory like XMLDom do.
However, the reader and writer don´t seem to work well together because
I get a xmlException when I try to read a stream that I just have
written to. Is there any way to read and write simultanously without
using XMLDom?
My other problem is that I want to be able to append data to an existing
xml-file with XMLTextWriter but when I do that the data is saved
after the end of the root element, like this:
<CarRegister version="1">
<Car name="Volvo">134000</Car>
<Car name="FIAT">16400</Car>
</CarRegister>
<Car name="FIAT UNO">13000</Car>
Therefore my xml-file is not well-formed.
Do anyone have any idea, I would really want to use something faster
than XMLDom.
/Christian