new CmlReader()
Reader for CML document.
Use CmlReader.readData() can retrieve a suitable Kekule.ChemObject.
Data fetch in can be a string, reader will parse it to XML automatically;
otherwise it should be a XML document or XML element.
- Source:
Extends
Methods
-
readData(data, dataType, format, options) → {Variant}
-
Read from data and return a related instance.
Parameters:
Name Type Description dataVariant dataTypeString Type of data, value should fom Kekule.ChemStructureDataType. formatString Format ID. optionsHash Additional options to read data. Different reader may have different options. - Inherited From:
- Source:
Returns:
Instance created by data.- Type
- Variant