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

Re: xml parser

  • From: "Robert Hanson" <rhanson@b...>
  • To: "Richard James Anderson" <rja@d...>,"XMLDEV" <xml-dev@i...>
  • Date: Wed, 4 Nov 1998 11:19:05 -0500

vb6 xml parser
I downloaded your control, and have some questions...

1. Why can't I get it to work?

Ok, that was only one question, but a serious one.

I'm am trying to add Perl to your list of "Tested with", but ran into some
problems.  Below is the code I used:

1.  use Win32::OLE;
2.
3.  $parser = Win32::OLE->new('SAX.SAXParser') or die $!;
4.  $parser->parseFile('c:\winn95\desktop\test.xml') or die $!;
5.  undef $parser;
6.
7.  sub characters
8.   {
9.   my ($sCharacter, $iLength) = @_;
10.  print "$sCharacter\n\n";
11.  }

It seems to be able to create the SAX object in line 3, but dies on line 4
with the parseFile method.  Is there anyway to
get an error from the parser to see what the problem is... maybe a
getLastError method?  If I get a chance, I may also try it out with
PerlScript (or VBScript) in ASP later this week.

...If you (or anyone else) have any other ideas on getting this to work,
please let me know.

Many thanks,
    Robert


-----Original Message-----
From: Richard James Anderson <rja@d...>
To: XMLDEV <xml-dev@i...>
Date: Wednesday, November 04, 1998 6:36 AM
Subject: RE: xml parser


>Hi,
>
>For those who are interested, I've posted an early version of my ActiveX
SAX
>control up on my website ( URL below ).
>
>The control still has a long way to go, but it can parse most files that do
>not contain references to external entities.
>
>The download includes a sample VB6 app for reading and processing XML
files.
>It just loads the XML file into a tree control, and shows the SAX events in
>a list control.   Of course, the control can be used to anything that
>supports COM automation controllers.
>
>Enjoy,
>
>Richard.
>
>RJA@D...
>http://www.arpsolutions.demon.co.uk
>
>*** The text contained within this message is of a personal nature that
does
>not reflect the development of opinions of data interchange plc unless
>specifically stated ***
>
>
>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...)



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.