StringBuilder vs XmlTextWriter

前端 未结 4 1255
独厮守ぢ
独厮守ぢ 2020-12-31 15:57

I am trying to squeeze as much performance as i can from a custom HttpHandler that serves Xml content.

I\' m wondering which is better for performance. Using the Xm

4条回答
  •  Happy的楠姐
    2020-12-31 16:30

    When SOMEVALUE has a & or < in it, this approach will get you into trouble. Use xml-aware classes to to generate xml. Have a read of HOWTO Avoid Being Called a Bozo When Producing XML.

提交回复
热议问题