Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

convert facebook xml file to GraphML format

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

facebook provides a java api that allows us to extract friends list into a xml format.

my goal is to find a way to convert facebook xml data into GraphML format.

I have no clue how i can proceede to tackle this problem.
any suggestions or materials would be very welcomed.

thanks.
 
Paul Clapham
Sheriff
Pie
Posts: 20206
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I see the requirement "convert one XML format to another XML format" I generally think of using XSLT. That is most likely what I would do with your example.
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
When I see the requirement "convert one XML format to another XML format" I generally think of using XSLT. That is most likely what I would do with your example.


did't used XSLT before.is there a good java XSLT tutorial to get me started ?
 
Paul Clapham
Sheriff
Pie
Posts: 20206
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do an Internet search for the keywords "xslt tutorial" if you want to find XSLT tutorials. I guarantee you will find some. After you read them and think about them for a while, ask yourself whether you need Java for this project. You may find you don't need it.
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I desperitely need help from some generous person. my project deadline is very tight & don't want to be obliged to invest lots of time learning XSLT technology .
i need someone to help me write a XSLT file that takes as input the list of facebook friends ids and produce as output the Graphml file corresponding to this fb friends network .

btw ,is there any other java oriented solution for solving the problem i described above ?

thank you all.
 
Paul Atkinson
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use XQuery to do XML document transformations. XQuery transformations can then be executed (in Java) using Saxon 8.1 or better.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic