[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML parsing from within a VB server component

  • From: "Michael Kay" <M.H.Kay@e...>
  • To: <xml-dev@i...>
  • Date: Mon, 28 Sep 1998 11:20:23 +0100

vb xml parsing

-----Original Message-----
From: Billow, Danny J <Billow.Danny@e...>
To: 'xml-dev@i...' <xml-dev@i...>
Date: 25 September 1998 22:45
Subject: XML parsing from within a VB server component


>Can it be done?
Yes.

>Is there any documentation for msxml.dll?
I wouldn't advise using msxml, it's out of date and
Microsoft don't appear to have any plans for it. Use any of
the excellent Java-based SAX parsers available.

So how to access a Java parser from a VB (COM) environment?
I haven't tried doing this directly at the SAX level, though
it's probably possible if you understand the intricacies of
COM. What I did was to write a Java wrapper class around the
SAXON library (http://home.iclweb.com/icl2/mhkay/saxon.html)
and register this as a COM object using Microsoft's javareg
utility. I designed the wrapper class to have a very simple
interface: no exceptions, no callbacks, only strings and
integers as parameters; I'm sure I restricted it
unnecessarily but I had had problems bridging more complex
interfaces so I was overcautious. The COM wrapper class is
part of the SAXON distribution.

As an alternative to Microsoft's javareg you ought to be
able to use Sun's ActiveX Bridge but I spent a week trying
to get it to work, while javareg worked for me first time.

>Is this module used by the browser only or can I use it in
my server
>component?

I've only tried using this server-side, generally from
VBScript on ASP pages. I haven't had time to explore the
complexities of client-side operation.

Mike Kay


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.