Guest
2011-02-23, 12:11 AM
PPS
You should be able to strip out the illegal character sequences (assuming that they are only in LinkId attributes) by running the file through a search and replace shell command before sending it to any kind of XML processor, whether the XMLTools.osax, OmniOutliner, or any other tool which expects compliant XML.
e.g. in a Terminal.app window something like:
Code:
sed 's/linkId0="[^"]*"//g' ~/Desktop/Example\ English.opml > ~/Desktop/mended.opml
osascript ~/Desktop/OPML2OF.app ~/Desktop/mended.opml
(Replacing the reference to your desktop with the paths of the folders containing the script and OPML file(s))
(Note that calling the script on the command line with an argument, using osascript, only works with version
updated today).
--
Last edited by RobTrew; 2012-07-17 at 08:00 PM..