Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XMLSerializer  RSS feed

 
mira shawky
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii all
i just build this method but i can't get the serialized as string or stream??
can anyone help ??

here is the method
public static void serialize(Element element) {
OutputFormat format = new OutputFormat();
XMLSerializer serializer = new XMLSerializer(System.out, format);
try {
serializer.serialize(element);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
thnx
Mira
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "I can't get" mean? What is or is not happening?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!