Turtle DB
A mini DDBMS
ca.uqac.dim.ddb.XmlQueryFormatter Class Reference

List of all members.

Static Public Member Functions

static Document toXmlDocument (Relation q)
static String toXmlString (Relation q)

Detailed Description

Facilities to convert relations into equivalent XML representations. The XmlQueryFormatter works in pair with the XmlQueryParser; more precisely, for any Relation r, we should have that XmlQueryParser.parse(XmlQueryFormatter.toXmlDocument(r)) == r

Author:
sylvain

Member Function Documentation

Serializes a relation as a DOM document.

Parameters:
qThe relation to serialize
Returns:
The resulting XML document

Serializes a relation as a string containing an XML representation of the relation.

Parameters:
qThe relation to serialize
Returns:
A "stringified" XML document

The documentation for this class was generated from the following file: