RE: CRLF in <string> -- XML vs XML-RPC

"Gaetano Giunta" <[email protected]> Fri, 11 May 2007 12:10:28 +0200
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
Only way to make sure is trying out, really... I'll try to allocate time for a test in the next couple of days.

I am fairly sure I use the standard xml parser that comes with php, unless I have coded an xml parser from scratch without realizing it ;)

Afaik, that means expat for php 4. It can be either a version bundled together with php, the expat version in use by apache or any other version available on the system.

For php5, the thing is muddier: the online man page talks about an "expat compat layer" without giving many details...
ldd and source code perusal seem to confirm that libxml is used as the default xml parser in such configuration (plus I just remembered some quirks that emerged in my lib when first testing with php 5, and a bug I opened on php.net but was dimissed as bogus from the developers. This confirms that the xml parser in use is another one altogether)

Of course, expat and libxml might have different povs regarding CRLF normalization...
I have no idea about Python.

Bye
Gaetano


  -----Original Message-----
  From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
  Sent: Thursday, May 10, 2007 3:05 AM
  To: [email protected]
  Subject: Re: [xml-rpc] CRLF in <string> -- XML vs XML-RPC


  >> That's hard to believe. You mean the conventional PHP XML parser
  >> doesn't normalize CR/LF ever? Considering 1) that the XML spec makes
  >> it pretty clear that it's required; and 2) it's generally very useful,
  >> I don't think it could get away with that. Plus, I have an Expat
  >> parser from 2001 that has the normalization integrated pretty tightly
  >> into it.

  >Well, I quoted from memory, and I am most likely wrong. I just
  >re-read the spec, and as you correctly pointed out in chapter 2.11 the
  >normalization is in fact required upon parsing.

  Well, there's still some confusion, because I have a user who, using
  your implementation as a standard by which to measure mine, claims
  that yours does _not_ do line ending normalization on the receiving
  side (specifically, where a server receives a <string> parameter).
  Could you have been wrong about the fact that you (PHP XML-RPC) use
  the standard PHP XML parser but right about the fact that the PHP
  XML-RPC server doesn't do line ending normalization?

  Same user says a Python XML-RPC server does _not_ do line ending
  normalization of <string> parameter values.

  -- 
  Bryan Henderson San Jose, California


   

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/