if (doc.__vorba==null)
doc.__vorba = vorba;
doc.__ensure_instance_ids(); // this may take a while. Do we allow for cyclic references ?
- doc.marshal(outstream);
+ Marshaller mshl = new Marshaller(outstream);
+ mshl.marshal(doc);
}
/**
Unmarshaller unmarshaller = new Unmarshaller(root);
unmarshaller.setIDResolver(new IDResolver() {
public Object resolve(String id) {
+ // TODO: allow for external ID resolution
VorbaXmlBinder.log.warn("Warning - id " + id
- + " is not found in the Vamsas XML!");
+ + " is not found in the Vamsas XML! (TODO: Ignore if this is a forward reference!)");
return null;
}
});