Re: [xml] getting rid of '"'



On Tue, May 26, 2009 at 12:29:18PM +0530, chandni13131 wrote:
Hi,

I am trying to generate xml data as below.

<propstat>
   <prop>
    <getetag>"1243318561"</getetag>
   </prop>
   <status>HTTP/1.1 200 OK</status>
  </propstat>

but it gets converted to

<propstat>
   <prop>
    <getetag>&quot;1243318561&quot;</getetag>
   </prop>
   <status>HTTP/1.1 200 OK</status>
  </propstat>

I am using XmlWriter to write xmlnodes. How should i generate the desired
xml.

  You don't have to, they are exactly the same for an XML parser, just
make sure the consumer is actually expecting XML. If not then it's not
XML that you need to generate and xmlWriter may not be adequate

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]