• 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: Perplexity with X3D and XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perplexity with X3D and XML


  • Subject: Re: Perplexity with X3D and XML
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 15 Aug 2012 21:55:13 -0700

On Aug 15, 2012, at 7:47 PM, Christopher Henrich <email@hidden> wrote:

> The specification of the XML form for X3D requires that an MFString be enclosed in single quotes, and the enclosed strings must be enclosed in double quotes. Example: ' "alpha" "bravo" '.

Huh? Single vs double quotes for delimiting attributes are a detail of the way the XML is encoded to text; they have nothing to do with the schema of the data in the file. You might as well say that X3D has to be displayed in the Courier font to be valid. :)

It _is_ reasonable for the spec to say that these attributes' values have to contain double-quoted strings. But how those attributes are encoded into syntactically correct XML markup is irrelevant. The encoder could use single-quotes to delimit the attributes, or it could use double quotes and then %-escape the inner double-quotes. The two are interchangeable from the point of view of any proper XML parser.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Perplexity with X3D and XML
      • From: Christopher Henrich <email@hidden>
References: 
 >Perplexity with X3D and XML (From: Christopher Henrich <email@hidden>)

  • Prev by Date: Re: Basic constraints: Cancel & OK buttons
  • Next by Date: Re: Perplexity with X3D and XML
  • Previous by thread: Perplexity with X3D and XML
  • Next by thread: Re: Perplexity with X3D and XML
  • Index(es):
    • Date
    • Thread