in reply to XML::Fling begone?
When you benchmark, be sure to time the building of a string to output as Genx won't have a handle to write to.
One problem with XML 1.0 is that they made some stupid decisions with regard to control characters. This is likely fixed in the next version of the XML spec (which I assume is still not finished).
In my experience, the majority of XML parsers are actually non-complient on this point (perhaps a form of civil disobedience or a subconscious revolt against a design misfeature?) so producing non-complient XML has a practical advantage for me. If Genx is complient on this point, then that will probably be too much thrash to be worth the minor benefit.
When XML 1.1 becomes available, then the stupid design decision is restricted to nul characters, which is an acceptable compromise. Which means that using Genx and letting the user select which version of XML they want output would be great.
Only being able to produce UTF-8 may have some interesting consequences. We have a hard time getting people to deal with encodings with XML correctly. The change will likely cause some disruption. It may ease some problems. For example, cbhistory still produces UTF-8 output but claims it is Latin-1 (because it feeds Latin-1 to its XML parser but the parser insists on producing UTF-8 output and the author didn't appreciate this fact). So such a change might fix this problem and/or may cause it to appear more places. I just mention this in hopes that this somewhat minor point will be properly addressed if a change is made.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Fling begone? (ctrl, utf-8)
by Aristotle (Chancellor) on Dec 19, 2004 at 21:30 UTC | |
by tye (Sage) on Dec 19, 2004 at 23:40 UTC | |
by Aristotle (Chancellor) on Dec 20, 2004 at 01:36 UTC | |
by tye (Sage) on Dec 22, 2004 at 16:40 UTC | |
by Aristotle (Chancellor) on Dec 25, 2004 at 10:21 UTC | |
| |
by Aristotle (Chancellor) on Dec 31, 2004 at 15:08 UTC | |
by tye (Sage) on Jan 01, 2005 at 05:55 UTC |