public static boolean noSchemaToXML(Document doc, RDFNode rdf, Context ctx) {
boolean qualify = ctx.getDefaultNS()!=null;
if (rdf instanceof Resource) {
Resource r = (Resource) rdf;
for (StmtIterator i = r.listProperties(); i.hasNext(); ) {
Statement stmt = i.nextStatement();
Property p = stmt.getPredicate();
// ignore RDF properties eg. RDF:type
// take the first (non-rdf) property we find as document element
if (!p.getURI().startsWith(RDF.getURI())) {