Re: my first Tck/Tk program... and an XML question
- From: "Steve Ball" <Steve.Ball@xxxxxxxxxxxxxx>
- Date: 30 Nov 2006 13:25:58 -0800
Your question is about empty element syntax. They are completely
equivalent syntactically; the Catalog element has no content. XML
parsers shouldn't care which form of syntax is used, and an XML
serialiser may freely choose which form to emit. Some XML packages may
give you a choice, but it is not really necessary - TclDOM does not
allow the choice and AFAIK neither does tDOM.
I don't believe this is a common hassle for those working with XML -
most of us aren't bothered.
HTHs,
Steve Ball
jkj wrote:
Regarding XML, I do wonder why implicit endtags are not recognized
consistently as start AND end tags. In other words, if the XML
contains:
<Catalog/>
rather than:
<Catalog></Catalog>
...then the parsings, from the my very inexperienced point of view, of
these two instances are different even though they are syntactically
equivalent (please correct me if I am wrong about syntactic
equivalence). The statement used in the appended code "[$default_xml
asXML]" produces output with "implicit end tags" - can it be modified
so that explicit tags are produced when a node's definition is empty?
is this a common hassle when working with XML??
[...snip...]
.
- Follow-Ups:
- References:
- Prev by Date: Re: How to enable/disable network devices with tcl (WinXP)
- Next by Date: Re: TclDOM memory leak
- Previous by thread: my first Tck/Tk program... and an XML question
- Next by thread: Re: my first Tck/Tk program... and an XML question
- Index(es):