internal data structure of xml files in mkiv
Hi, just wondering. What is the meaning of the separating strings (\13\ ...) between elements? First I thought they were introduced by table.serialize. But trying to index elements showed that they are part of the format. t={ ["at"]={}, ["dt"]={ { ["dt"]={"xmlversion=\"1.0\"encoding=\"UTF-8\""}, ["ns"]="", ["special"]=true, ["tg"]="@pi@", }, "\13\ <--- \13\ <--- ", { ... Peter -------------------------------------------------------- Praise the Lord and pass the ammunition - Serj Tankian
Peter Rolf wrote:
Hi,
just wondering. What is the meaning of the separating strings (\13\ ...) between elements? First I thought they were introduced by table.serialize. But trying to index elements showed that they are part of the format.
At a guess, I would assume that that is the textual content of the top-level, that just happens to be only whitespace (backslash + 13 + backslash + <nl> == CRLF). It is useful to retain that, for instance when you want to round-trip an XML file after some adjustments. Best wishes, Taco
Taco Hoekwater schrieb:
Peter Rolf wrote:
Hi,
just wondering. What is the meaning of the separating strings (\13\ ...) between elements? First I thought they were introduced by table.serialize. But trying to index elements showed that they are part of the format.
At a guess, I would assume that that is the textual content of the top-level, that just happens to be only whitespace (backslash + 13 + backslash + <nl> == CRLF).
It is useful to retain that, for instance when you want to round-trip an XML file after some adjustments.
That makes sense. Thanks Taco!
Best wishes, Taco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Peter Rolf
-
Taco Hoekwater