OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: xml parser

[ Lists Home | Date Index | Thread Index ]
  • From: "Robert Hanson" <rhanson@blast.net>
  • To: "Richard James Anderson" <rja@dip.co.uk>,"XMLDEV" <xml-dev@ic.ac.uk>
  • Date: Wed, 4 Nov 1998 11:19:05 -0500

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@dip.co.uk>
To: XMLDEV <xml-dev@ic.ac.uk>
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@DIP.CO.UK
>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@ic.ac.uk
>Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
>To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
>(un)subscribe xml-dev
>To subscribe to the digests, mailto:majordomo@ic.ac.uk the following
message;
>subscribe xml-dev-digest
>List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)



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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS