W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2010

RE: Doubt in xmlDocDumpFormatMemoryEnc

From: bharath <bharathkr@huawei.com>
Date: Mon, 23 Aug 2010 18:31:47 +0530
To: 'Michael Kay' <mike@saxonica.com>
Cc: xmlschema-dev-request@w3.org, xmlschema-dev@w3.org, arathikarki@huawei.com, rajithr@huawei.com
Message-id: <001101cb42c3$58fc8070$2301120a@china.huawei.com>
Hi Michael,
 
This function "xmlDocDumpFormatMemoryEnc" is in xmlsave.c of Libxml. This
function is used for dumping the xml file contents (pointed by xmlDocPtr) to
string format.
 
Can you please check this and let me know about the conversion of xml
special characters to format as given below.
 
Thanks and Regards,
Bahrath.
 
****************************************************************************
***********
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!
 

  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Michael Kay
Sent: Monday, August 23, 2010 6:19 PM
To: bharath
Cc: xmlschema-dev-request@w3.org; xmlschema-dev@w3.org;
arathikarki@huawei.com; rajithr@huawei.com
Subject: Re: Doubt in xmlDocDumpFormatMemoryEnc


I suspect that most readers of this list, like me, have never heard of
xmlDocDumpFormatMemoryEnc(). So it would be useful for you to explain what
product it is part of and what its intended purpose is. Does it have
anything to do with XML Schema (and if not, why are you posting here?)

Intrinsically, escaping of XML special characters (for example converting &
to &amp;) is a sensible/necessary thing to do for any tool that generates or
serializes XML.

Michael Kay
Saxonica

On 23/08/2010 13:31, bharath wrote: 

Hi All,
 
I am calling the function xmlDocDumpFormatMemoryEnc() to construct xmlDocPtr
to xmlChar.
When i used this function, the left characters are converted to right
characters. Can you please let me know what is the reason to convert like
this.
 
 
& - &amp;
> - &lt;
< - &gt;
" - &quot
' - &#39;
\r - &#13;
 
Thanks and Regards,
Bharath.
 
****************************************************************************
***********
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!
 
Received on Monday, 23 August 2010 13:02:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:57 UTC