~ubuntu-branches/ubuntu/oneiric/libxml2/oneiric-security

« back to all changes in this revision

Viewing changes to doc/xmlio.html

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2010-11-05 08:23:58 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20101105082358-11a5bm2rlasmmz18
Tags: 2.7.8.dfsg-1
* New upstream release.
* configure.in: Applied upstream fix to reactivate symbol versioning script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="ISO-8859-1"?>
 
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
 
3
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
4
4
TD {font-family: Verdana,Arial,Helvetica}
5
5
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
6
6
H1 {font-family: Verdana,Arial,Helvetica}
106
106
    the file:
107
107
    <pre>xmlOutputBufferPtr
108
108
xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
109
 
����xmlOutputBufferPtr ret;
110
 
����
111
 
����if (xmlOutputCallbackInitialized == 0)
112
 
��������xmlRegisterDefaultOutputCallbacks();
 
109
    xmlOutputBufferPtr ret;
 
110
 
 
111
    if (xmlOutputCallbackInitialized == 0)
 
112
        xmlRegisterDefaultOutputCallbacks();
113
113
 
114
 
����if (file == NULL) return(NULL);
115
 
����ret = xmlAllocOutputBuffer(encoder);
116
 
����if (ret != NULL) {
117
 
��������ret-&gt;context = file;
118
 
��������ret-&gt;writecallback = xmlFileWrite;
119
 
��������ret-&gt;closecallback = NULL;  /* No close callback */
120
 
����}
121
 
����return(ret);
 
114
    if (file == NULL) return(NULL);
 
115
    ret = xmlAllocOutputBuffer(encoder);
 
116
    if (ret != NULL) {
 
117
        ret-&gt;context = file;
 
118
        ret-&gt;writecallback = xmlFileWrite;
 
119
        ret-&gt;closecallback = NULL;  /* No close callback */
 
120
    }
 
121
    return(ret);
122
122
} </pre>
123
123
  </li>
124
124
  <li>And then use it to save the document: