I've done a lot of XML parsing and processing in J and the first thing to
consider is the nature of
the XML.  If the documents are simple enough I just roll my own document
specific parsers in
J.  This route is far more effective than you might expect. Performance is
very good as many J operations
 like cut are very fast.  My entire flickrAPI system uses such an approach.

If the documents are complex and more importantly (subject to change) I will
used tools like
Oleg's sax processor and possibly native or COM calls to traditional XML DOM
processors.

One area that you should look out for is true unicode in XML documents.  The
vast majority of
xml is largely ASCII but we are seeing more and more asian documents that
actually mean it when
they declare the document UTF-8.  If this is the case you will have to use
traditional DOM processors
and take some care to map unicode data to J.

jdb



On Tue, Apr 22, 2008 at 9:19 PM, Devon McCormick <[EMAIL PROTECTED]> wrote:

> No, I haven't but now I will.  I would have searched the Wiki earlier but
> this just occurred to me as I was heading out the door this evening and I
> wanted to see if anyone else had encountered this particular problem.
>
> Thanks for the tips.
>
> On 4/22/08, Sherlock, Ric <[EMAIL PROTECTED]> wrote:
> >
> > Devon,
> > Have you looked at Oleg's sax or loose addons?
> > http://www.jsoftware.com/jwiki/Addons/xml/sax
> > http://www.jsoftware.com/jwiki/Addons/xml/loose
> >
> >
> >
> > ---Devon McCormick wrote:
> > > has anyone done work parsing XML with J?  I'm being asked to
> > > compare XML
> > > files -containing mostly
> > > tabular, numeric data - but am having to wait for someone to write an
> > > XML comparator for me.
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
>  For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to