Recently I wrote a script to harvest data from Facebook and Facebook return a
JSON array.
I used <json-to-xml> but I got some errors when XPath to extract data from the
xml data because it is not a well-formed xml.
In this case, I extend the code of "XmlToJsonPlugin" to use
XML.toString(Object o, String tagName) to add a root element for xml.
This is very easy for you guys to add an overwrite method for this purpose
inthis plugin and adding an attribute named "root-tag-name" or things like
that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Recently I wrote a script to harvest data from Facebook and Facebook return a
JSON array.
I used <json-to-xml> but I got some errors when XPath to extract data from the
xml data because it is not a well-formed xml.
In this case, I extend the code of "XmlToJsonPlugin" to use
XML.toString(Object o, String tagName) to add a root element for xml.
This is very easy for you guys to add an overwrite method for this purpose
inthis plugin and adding an attribute named "root-tag-name" or things like
that.
Great thanks!
That's definitely must be fixed. I'll look at it!
Done.
http://web-harvest.svn.sourceforge.net/viewvc/web-
harvest?view=revision&revision=356
Thanks for your work !