[x3d-public] MFString quotes

Yves Piguet yves.piguet at gmail.com
Wed Mar 15 14:10:02 PDT 2017


> On 15 Mar 2017, at 21:49, Leonard Daly <Leonard.Daly at realism.com> wrote:
> 
> [...]

I agree.

> Note that the XML element produces an MFString with 1 element
> 
>  <Text string="'string 1' 'string 2'"/>
> 
> In this case the single element would be - 'string 1' 'string 2'

But this is invalid per 19776-1 v3.3; see http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfFields.html#SFString

There is a specific note which states that an unquoted attribute _value_ (without the quotes which belong to XML) is an invalid MFString. I.e. you may not replace a single-element MFString with an SFString.

> NOTE  The construct
> 
> "string3"
> 
> is not a valid instance of an MFString. Such an MFString would be properly specified as
> 
> '"string3"'

I think that shouldn't change in v4.

Yves




More information about the x3d-public mailing list