Re: [xml] DAV: namespace and xmlReader



On Sat, Jan 22, 2005 at 09:40:31PM +0100, Minor Gordon wrote:
Daniel,

Thank you for the extremely prompt response.
I will download the CVS and test this.

In the meantime, I have another, simpler request that also has to do 
with WebDAV.

In xmlwriter.c, xmlTextWriterStartDocument line 533 you automatically 
put a \n after the ?> in <?xml version=xx ?>.  Unfortunately, 
Microsoft's WebDAV client (for WebFolders) has its own finicky XML 
parser, and it doesn't like any indentations in the WebDAV XML 
response.  It will still parse the \n, but certain functions of the 
client are disabled, most notably double clicking on files in WebDAV 
folders (I have modified xmlwriter.c to confirm this).

xmlTextWriterSetIndent(0) takes out pretty printing in the document 
itself.  Can you also check this setting before printing the \n after 
"?>" ?

  I dislike this. A number of software read the first line just to detect
possible encoding in the XMLDecl and then stream on the end of
the document. This change is likely to break load of stuff. But adding
a separate option xmlTextWriterSetXMLDeclLine() for this purpose would be
reasonnable. Please fill a request for enhancement in bugzilla and it's
likely to be added before the next release.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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