Re: [xml] DAV: namespace and xmlReader



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 "?>" ?

Regards,
Minor

Am 21.01.2005 um 16:36 schrieb Daniel Veillard:

On Fri, Jan 21, 2005 at 09:58:19AM +0100, Minor Gordon wrote:
Hello,

I am trying to parse WebDAV messages like the person below, and running
into the same problem.  The xmlReader in the latest version of libxml2
(.17) will not parse this -- it gives warning 99 (invalid namespace
DAV:), and won't return the propfind element with
xmlTextReaderConstLocalName. I've tried xmlSetPedanticParserDefault(0)
and xmlResetLastError() to get around the warning, to no avail.

libxml2 .10 doesn't trip on this, so we've reverted for now.  I would
like to stay current with libxml2 fixes, though.

Is there any way to get around this?

  Reproduced the problem, I fixed it in CVS, it's the same problem as
    http://bugzilla.gnome.org/show_bug.cgi?id=164556

I don't see an easy way to work around it right now except to find a way to reset ctxt->errNo . But the fix is in CVS, and should be available quickly
in the cvs snapshot on ftp://xmlsoft.org/

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]