internal data structure of xml files in mkiv
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
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