• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ANNOUNCE: XML Tools 2.3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ANNOUNCE: XML Tools 2.3.2


  • Subject: Re: ANNOUNCE: XML Tools 2.3.2
  • From: Mark Alldritt <email@hidden>
  • Date: Tue, 20 Nov 2001 14:04:20 -0800

on 20/11/2001 11:10 AM, Elliotte Rusty Harold at email@hidden
wrote:

>> Version 2.3.2 of XML Tools has been released. This version allows
>> whitespace to appear before the initial <?xml ... ?> element and the
>> generate XML command correctly emits whitespace between attributes with
>> pretty printing is disabled.
>>
>
> Bad news! White space (aside from an optional non-spacing byte order
> mark) is not allowed before the XML declaration. If your parser is
> accepting it, then your parser is broken. (There is a little semantic
> wiggle-room if you want to claim the beginning of the document is not
> necessarily coincident with the beginning of the string, stream, or
> file. However, this is such an unusual thing to do that it's
> virtually guaranteed to cause problems for users of your library.)

I understand that leading whitespace is not permitted in the XML spec, but
I've had a couple of folks who have XML files that for one reason or another
contain leading white space and need to parse them.

This relaxation of the XML spec would not seem to represent a problem for
anyone with well formed XML, and it adds flexibility that makes XML more
usable in AppleScript, especially since AppleScript is so lame at string
processing. Perhaps I'm wrong. If you can provide an example, I'm all
ears.

Cheers
-Mark

---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB: http://www.latenightsw.com/ CANADA V8V-4M9


  • Follow-Ups:
    • Re: ANNOUNCE: XML Tools 2.3.2
      • From: Elliotte Rusty Harold <email@hidden>
References: 
 >Re: ANNOUNCE: XML Tools 2.3.2 (From: Elliotte Rusty Harold <email@hidden>)

  • Prev by Date: My last popup item....
  • Next by Date: Re: Retrieving cell data from Microsoft Excel 98
  • Previous by thread: Re: ANNOUNCE: XML Tools 2.3.2
  • Next by thread: Re: ANNOUNCE: XML Tools 2.3.2
  • Index(es):
    • Date
    • Thread