TurtleDB
A mini distributed database system
|
Static Public Member Functions | |
static Document | toXmlDocument (Relation q) |
static String | toXmlString (Relation q) |
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
Definition at line 36 of file XmlQueryFormatter.java.
static Document ca.uqac.dim.turtledb.XmlQueryFormatter.toXmlDocument | ( | Relation | q | ) | [static] |
Serializes a relation as a DOM document.
q | The relation to serialize |
Definition at line 43 of file XmlQueryFormatter.java.
static String ca.uqac.dim.turtledb.XmlQueryFormatter.toXmlString | ( | Relation | q | ) | [static] |
Serializes a relation as a string containing an XML representation of the relation.
q | The relation to serialize |
Definition at line 63 of file XmlQueryFormatter.java.