Little confused on how to use the SaxRepresentation. I have this:
@Override
public Representation getRepresentation(Variant variant) {
Representation result = null;
if (variant.getMediaType().equals(MediaType.APPLICATION_XML)) {
???? SaxRepresentation sax = new
SaxRepresentation(MediaType.APPLICATION_XML); ???? What do I do?
}
return result;
}
I'm not sure how to use it. I understand I need to create a subclass of
ContentHandler correct? But say I have a User object to parse, how to I
return this SaxRepresentation with that content handler and User object?
--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke