Re: what does "serialization" mean?

RobertMaas_at_YahooGroups.Com
Date: 07/10/04


Date: Sat, 10 Jul 2004 08:47:52 -0700


> From: Programmer Dude <Chris@Sonnack.com>
> ... I *replicated* the above as ASCII in this medium. In the
> original, the first one is pure UTF16.

Ah, I didn't notice that the first time around. So in the original, was
it NUL-ascii or ascii-NUL for those characters in the xml version
character declaration line?

So after getting involved in this discussion, and seeing the other
message about how the declaration itself is already in the desired
encoding, so the parser has to try it various ways to see what it
is before being able to read it to verify the guess was correct, I
wondered what it said in the .NET book I had been reading lately.
So I went back to the chapter on XML in that book ("Visual Basic .NET,
HOW TO PROGRAM Second Edition" (2002), by Deitel, ISBN 0-13-029363-6)
to look at those declarations to see which encoding they claimed and if
there were any remarks about what encoding the declaration itself was
in. Result: Every one of the examples of XML documents in that chapter
begins with a line that says just:
<?xml version = "1.0"?>
with no mention of encoding anywhere there. So is the encoding
attribute something your particular company does that isn't required in
XML documents, or is the book wrong or out of date, or what?



Relevant Pages

  • Re: ANC: tmlrss.tcl - process RSS newsfeeds for tclhttpd
    ... make sure it generates *legal* HTML such as ... ... When one gets the feed, which is in XML, over HTTP, encodings are sometimes done ... As TDOM's Expat parser reads the XML declaration, ... So that leaves me to do [encoding ...
    (comp.lang.tcl)
  • Re: UTF-8 encoding problem
    ... Declaration having the "encoding" attribute at the begining of file ... What I am saying is the "encoding" of your physical file is different then the logical file (the xml itself). ... It sounds like your physical file is UTF-8, while I'm concerned your logical file is whatever, where whatever is the text you blindly copied from an MSDN article. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: TCL Dom question
    ... > I'm haven't actually used TclDOM yet, but I'm glad to hear that. ... One reason why I like XML so much, ... >>declares the character encoding used in the XML Declaration, ...
    (comp.lang.tcl)
  • Re: Unable to read the XML declaration
    ... > learning XML and i can't find a way to read the Xml declaration ... > In the debugger I can see that there is a declaration element to the ... XmlTextReader exposes the Encoding, and DOM models the XML ...
    (microsoft.public.dotnet.xml)
  • Re: Want Input boxes to accept unicode strings on Standard Window
    ... If ther encoding is not specified, then the encoding is assumed to be ... Ah, UTF-8. ... That would be wrong according to the standard. ... when producing XML files. ...
    (microsoft.public.vc.mfc)