Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probably a very easy issue with my data file, but the validator/error message isn't helping much #94

Closed
coderextreme opened this issue May 12, 2024 · 3 comments

Comments

@coderextreme
Copy link

$ ~/Downloads/castle-model-viewer-4.3.0-win64-x86_64/castle-model-viewer/castle-model-converter.exe --validate JinSkip09x.x3d 2>&1
castle-model-converter: Warning: X3D: Error when reading MFString field "value" value. Possibly missing double quotes (treating as a single string): Error at line 1 column 2: Illegal character in stream : ' (#39)

{ ignoring the standard joints message for now ]

Here's the file:
JinSkip09x.x3d.txt

Probably Joe W. has already reported this.

Thanks, I will try downloading the latest viewer

@coderextreme
Copy link
Author

coderextreme commented May 12, 2024

Here's the offending line:

<MetadataString name='gender' value="'female'"/>

Closing

@coderextreme
Copy link
Author

Note that this was nowhere near line 1. That might be able to be fixed.

@michaliskambi
Copy link
Member

michaliskambi commented May 14, 2024

I see it's closed. For others, to make it clear, the solution is to do

<MetadataString name='gender' value='"female"'/>

i.e. value = <apostrophe> <double-quote> female <double-quote> <apostrophe> . This is valid X3D XML, with MFString.

Doing value = <double-quote> <apostrophe> female <apostrophe> <double-quote> is not valid.

Note that this was nowhere near line 1. That might be able to be fixed.

Indeed. That error message talks about 1st line of MFString contents -- which will be almost always 1... I agree it is confusing. I'll look to improve this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants