Re: Perplexity with X3D and XML
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