aspose file tools*
The moose likes XML and Related Technologies and the fly likes convert facebook xml file to GraphML format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "convert facebook xml file to GraphML format" Watch "convert facebook xml file to GraphML format" New topic
Author

convert facebook xml file to GraphML format

Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

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
Bartender

Joined: Oct 14, 2005
Posts: 18879
    
    8

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

Joined: Jul 07, 2005
Posts: 510

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
Bartender

Joined: Oct 14, 2005
Posts: 18879
    
    8

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

Joined: Jul 07, 2005
Posts: 510

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

Joined: Sep 07, 2008
Posts: 2
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
 
subject: convert facebook xml file to GraphML format