Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

SAX with VB

  • 23-05-2003 12:41pm
    #1
    Closed Accounts Posts: 658 ✭✭✭


    Getting an error 91 from this code:

    Dim xmlDoc As New DOMDocument40
    Dim currNode As IXMLDOMNode
    Dim atrs As New SAXAttributes40
    Dim rdr As New SAXXMLReader40
    Dim wrt As New MXXMLWriter40
    Dim cnth As IVBSAXContentHandler
    Dim filter As MyExtractor
    wrt.omitXMLDeclaration = False
    wrt.indent = True
    Set filter.IVBSAXXMLFilter_parent = rdr <- Error happens here
    Set filter.SAXXMLReader40_contentHandler = wrt
    filter.cutElement = "Appointment"

    rdr.parse getXmlPath()

    anybody got any ideas why or some where to look up?

    thanks


Comments

  • Registered Users, Registered Users 2 Posts: 2,781 ✭✭✭amen


    it sounds like the rdr is not an object
    have u tried
    IsObject(rdr) in immediate windows or code to see if it is an object?

    does filter.IVBSAXXMLFilter_parent expect an object ?

    can you attach your project ?


  • Closed Accounts Posts: 658 ✭✭✭Trebor


    tried the Isobject, it said that is does exsist.

    have attached project, it is a bit of a mess. the bit i am working on at them moment is SaxToDom function which has an instance of the class MyExtractor.


Advertisement