• 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: A question about LN Softwares XML Tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question about LN Softwares XML Tools


  • Subject: Re: A question about LN Softwares XML Tools
  • From: has <email@hidden>
  • Date: Thu, 8 Aug 2002 16:15:09 +0100

Steve Thompson wrote:

>If anyone from LNS is reading - why doesn't <dealerwebsite></dealerwebsite>
>parse to XML tag:"dealerwebsite",XML Contents:{""} ?

Presumably because XML makes no real distinction between "empty" and
"content-free". Without a DTD to explicitly describe the document structure
there's no way to tell if "<tag></tag>" is an empty element or merely one
that lacks a value. I guess whoever designed the parser decided that "<tag
/>" and "<tag></tag>" would both be considered empty by default, which I
think is as valid a choice as any.

As Helmut says, and barring a better solution, record concatenation will
help you around your problem. I really don't know what's the proper
solution as far as XML Tools is concerned... they could include a boolean
'Element Has Contents' property in the record which users could query, but
this would be fragile.

[The real problem, imho, is that the crude records and lists that XML Tools
outputs aren't really up to the task: what's really needed is a smarter,
object-based solution; maybe even have it generate a full-blown DOM. Which
would be great for users but no doubt a total bear for LNS to code,
especially considering they aren't getting paid for it.]

Ahhh... the wonderful, imperfect world of AppleScript... ;p

has

--
(My email address has changed from <email@hidden> to
<email@hidden>. Please update your address books accordingly.)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: stripping resource forks from a file.
  • Next by Date: Re: stripping resource forks from a file.
  • Previous by thread: Re: A question about LN Softwares XML Tools
  • Next by thread: Re: A question about LN Softwares XML Tools
  • Index(es):
    • Date
    • Thread