rhanson at blast.net
Wed Nov 4 16:20:05 GMT 1998
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;
3. $parser = Win32::OLE->new('SAX.SAXParser') or die $!;
4. $parser->parseFile('c:\winn95\desktop\test.xml') or die $!;
5. undef $parser;
7. sub characters
9. my ($sCharacter, $iLength) = @_;
10. print "$sCharacter\n\n";
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.
From: Richard James Anderson <rja at dip.co.uk>
To: XMLDEV <xml-dev at ic.ac.uk>
Date: Wednesday, November 04, 1998 6:36 AM
Subject: RE: xml parser
>For those who are interested, I've posted an early version of my ActiveX
>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
>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.
>RJA at DIP.CO.UK
>*** The text contained within this message is of a personal nature that
>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 at ic.ac.uk
>Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
>To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
>To subscribe to the digests, mailto:majordomo at ic.ac.uk the following
>List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev