[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|