Talk:XML/Output: Difference between revisions

(entity handling is a mess)
(→‎What is the point?: new section)
Line 5:
:: Why not simply have a name in the list which includes something with a named entity, like the German "Jürgen" ("Jürgen") or the french "André" ("André")? --[[User:Ce|Ce]] 09:18, 8 June 2009 (UTC)
::: Because those don't ''need'' to be encoded; the data stream might be UTF-8 (which is actually the default for XML...) For the quoting to work, we'd need to force the inclusion of each of <code><>'"&amp;</code> (those are the only ones that XML requires handling, and even the quoting characters only need doing in some circumstances; it's really messy) and those characters don't look like first names. (The set of things you're supposed to quote is larger in HTML.) —[[User:Dkf|Donal Fellows]] 10:47, 8 June 2009 (UTC)
 
== What is the point? ==
 
If the task requires creating some fixed output, the easiest and most effective way would be just to insert the required contents in the file. That has very little to do with real world problems.
 
It would make more sense if the task would be for example to read list of names from a text file and use it to create an XML file with specified structure. In that case it would make sense to to require converting special characters into entities, since such special characters might exist in the input file. In order to compare the output, you could then have an example input file. --[[User:PauliKL|PauliKL]] 11:48, 8 June 2009 (UTC)
Anonymous user