[x3d-public] X3DJSAIL: Getting many of these under ChemicalMarkupLanguage. Will investigate later.

Don Brutzman brutzman at nps.edu
Thu Mar 9 22:27:26 PST 2017


recent upgrade helps, the online example looks OK as checked by the newly added jsonlint (check) links:

	http://www.web3d.org/x3d/content/examples/Basic/ChemicalMarkupLanguage/OxytocinIndex.html

	http://jsonlint.com/?json=http://www.web3d.org/x3d/content/examples/Basic/ChemicalMarkupLanguage/Oxytocin.json

	Results - Valid JSON

so,not sure where you got these from... using your library to convert .x3d to .java and then running the java to serialize .json output?

please advise on genesis and then we can track down the erroneous escape handling.  apparently for fieldValue export, but am just trying to understand which converter to troubleshoot.  thanks John.

On 3/9/2017 1:47 PM, john at carlsonsolutiondesign.com wrote:
> www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/Oxytocin.java
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"Oxytocin: "' and be sure to fix source file!
>
> diff -w www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/Oxytocin.json www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/Oxytocin.new.json
>
> www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/PyruvicAcid.java
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"Pyruvic Acid: C3 H4 O3"' and be sure to fix source file!
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"molecule weight: 88.06"' and be sure to fix source file!
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"melting point: 12"' and be sure to fix source file!
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"boiling point: 165"' and be sure to fix source file!
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"specific gravity: 1.265"' and be sure to fix source file!
>
> diff -w www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/PyruvicAcid.json www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/PyruvicAcid.new.json
>
> www_web3d_org/x3d/content/examples/Basic/ChemicalMarkupLanguage/Riboflavin.java
>
> fieldValue name=txt warning: wrapped missing "quote marks" around single-string value for MFString @value='"Riboflavin: "' and be sure to fix source file!
>


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list