XML Parser (1 Viewer)

juliebme

New member
Local time
Today, 13:29
Joined
Dec 3, 2001
Messages
8
I am working on an XML parser to pars out and XML string that is stored in the document field of my referral table. The parser will create two new tables: Import and referral. Append all referrals to that table. (referrals are stored in referral table where type = 0) If the Import & Dependent tables already exists it should delete these tables & overwrite them. I keep getting the same error message. What am I doing wrong? How do you attach a file to this post? Anyone who replies, I can email them the completed database.

Thanks.
 

Alexandre

Registered User.
Local time
Today, 19:29
Joined
Feb 22, 2001
Messages
794
You cannot attach files to a post.
What code do you have so far? What error message do you get? Where?

Alex
 

juliebme

New member
Local time
Today, 13:29
Joined
Dec 3, 2001
Messages
8
Hi Alex. I thought I already emailed this to you, but I will email it to you again. Thanks for your help!

Julie
 

Alexandre

Registered User.
Local time
Today, 19:29
Joined
Feb 22, 2001
Messages
794
Julie,

From a first look:

Code:
If iChildren = 1 AND Not node.childNodes(0).nodeName = "#text" Then
    GoTo DumpNext
End If

Will return an error (no object) if there is no element in the ChildNodes collection.
I changed it to:

Code:
If iChildren = 1 Then
    If Not node.childNodes(0).nodeName = "#text" Then
          GoTo DumpNext
    End If
End If

And your parser seemed to work nicely.

I did not check it thoroughly yet, though.

Alex

[This message has been edited by Alexandre (edited 03-13-2002).]
 

Users who are viewing this thread

Top Bottom