XML Molecule

Add an XML parser, transformer, and generator.

Summary
XML Molecule
Preference Dialog
Properties
typestring, ( r )
pref.namestring, ( r )
parserobject, ( r )
generatorobject, ( r )
transformerobject, ( r )
xsltstring, ( r, w )
xsdstring, ( r, w )
xmlstring, ( r, w )
Functions
attach
detach
delete
rename
clone
serialize
validate
transform

Preference Dialog

Properties

type

string, ( r )

Type of this molecule, xml.

pref.name

string, ( r )

The scriptable name for this molecule.  This name can be set using rename function dynamically.

parser

object, ( r )

Returns the build-in XML parser.

generator

object, ( r )

Returns the build-in XML generator.  (see CCRxXMLGenerator.)

transformer

object, ( r )

Returns the build-in XML transformer.  (see CCRxXMLTransformer.)

xslt

string, ( r, w )

Gets/Sets the URL to a XSLT document.

xsd

string, ( r, w )

Gets/Sets the URL to a XSD document.

xml

string, ( r, w )

Gets/Sets the raw XML text.

Functions

attach

attach(droplet);

Attach this molecule to the given droplet.

Parameters

droplet(object) a droplet.

Returns

N/A

detach

detach();

Remove this molecule from its droplet.

Parameters

N/A

Returns

N/A

delete

delete();

Delete this molecule.

Parameters

N/A

Returns

N/A

rename

rename(name);

Rename this molecule.

Parameters

name(string) a new name.

Returns

N/A

clone

clone();

Create a clone of this molecule.

Parameters

N/A

Returns

(object) a molecule.

serialize

serialize();

Serialize this molecule into its JSON representation.

Parameters

N/A

Returns

(string) JSON representation of a molecule.

validate

validate();

Validate the xml using the XSD document at the location specified by xsd.  This function has not yet been implemented.

Parameters

N/A

Returns

(bool) true if validated correctly, otherwise false.

transform

transform();

Transform the xml using the XSLT document at the location specified by xslt.

Parameters

N/A

Returns

(string) a transformed xml document.

An XML generator that takes XPath-like input and generates XML document.
An XML transformer that transforms raw XML document using a downloaded XSLT template from a given URL.
string, ( r, w )
string, ( r, w )
Close