ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* internal data structure of xml files in mkiv
@ 2008-03-05 14:01 Peter Rolf
  2008-03-05 14:29 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rolf @ 2008-03-05 14:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: internal data structure of xml files in mkiv
  2008-03-05 14:01 internal data structure of xml files in mkiv Peter Rolf
@ 2008-03-05 14:29 ` Taco Hoekwater
  2008-03-05 14:50   ` Peter Rolf
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2008-03-05 14:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: internal data structure of xml files in mkiv
  2008-03-05 14:29 ` Taco Hoekwater
@ 2008-03-05 14:50   ` Peter Rolf
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2008-03-05 14:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-05 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-05 14:01 internal data structure of xml files in mkiv Peter Rolf
2008-03-05 14:29 ` Taco Hoekwater
2008-03-05 14:50   ` Peter Rolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).