> From: bill lam <[email protected]>

> 
> I want to parse a xbel file into J box array. An example,
> 
...
> 
> I can ignore the folder hierarchy. Only the bookmark href, and title
> are needed, so the output should be two character box arrays (or its
> equivalent) as following,
> 
> http://www.mozilla.com/products/firefox/central.html
...
> 
> Getting Started
...
> 
> It can be done by regex or sax addons but don't know how to do it.
> 
> FYI, xbel is a xml bookmark format for synchronizing bookmarks across
> different browsers over internet.

One is SAX
   http://www.jsoftware.com/svn/addons/trunk/xml/sax/test/boxed.ijs


   load '~addons\xml\sax\test\boxed.ijs'
   
   30&{.each process_pboxed_ TEST3
+------------------------------+------------------------------+
|Getting Started               |http://www.mozilla.com/product|
+------------------------------+------------------------------+
...
+------------------------------+------------------------------+
|Ubuntu Home Page | Ubuntu     |http://www.ubuntu.com/        |
+------------------------------+------------------------------+

Also XSLT
   http://www.jsoftware.com/svn/addons/trunk/xml/xslt/test/test02.ijs

   load '~addons\xml\xslt\test\test02.ijs'

   30&{.each <;._2;._2 toJ xsltest xslt xmltest
+------------------------------+------------------------------+
|Getting Started               |http://www.mozilla.com/product|
+------------------------------+------------------------------+
...
+------------------------------+------------------------------+
|Ubuntu Home Page | Ubuntu     |http://www.ubuntu.com/        |
+------------------------------+------------------------------+


      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to