Code example for XmlSerializer

Methods: setPrefix

0
        return (SubscribedFeedsEntry) getEntry(); 
    } 
 
    protected void declareExtraEntryNamespaces(XmlSerializer serializer)
        throws IOException { 
        serializer.setPrefix(NAMESPACE_GSYNC, NAMESPACE_GSYNC_URI);
    } 
 
    /* (non-Javadoc) 
     * @see XmlEntryGDataSerializer#serializeExtraEntryContents 
     */ 
    protected void serializeExtraEntryContents(XmlSerializer serializer,
                                               int format)
        throws IOException { 
        SubscribedFeedsEntry entry = getSubscribedFeedsEntry();
 
        serializeFeedUrl(serializer,  entry.getSubscribedFeed());
        serializeClientToken(serializer, entry.getClientToken());
        serializeRoutingInfo(serializer, entry.getRoutingInfo());
    }