Connecting Tech Pros Worldwide Help | Site Map

trying to READ nested "tables"

  #1  
Old October 10th, 2008, 04:05 PM
G.Waleed Kavalec
Guest
 
Posts: n/a
The nested option for WRITING XML is pretty clear. I have a problem
trying to READ nested "tables"....

<employer>
<acct>1234</>
</employees>
<employee>
<lastname>Smith</>
<ssn>123456789</>
</employee>
<employee>
<lastname>Smith</>
<ssn>123456789</>
</employee>
</employees>
<employer>


With dataset.readxml I get a list of all the Employers, THEN a list of
all Employees, and no indicator of an employees parent employer.

Which is what needs to get to the database, keyed by acct + ssn.

The fly in the ointment here is that the schema is defined by an
outside party, and there is no common column between Employer and
Employee, the nesting IS the relationship. How do I turn this into a
datarelation? Or is this going down a blind alley?

Some incoming files will literally be hundred-megs or more so we have
been doing the old SAX approach, but I really need to bring it up to
the 21st century.

--

Gregory Waleed Kavalec
---------------------------------------------
Chiroptera Fornix Insanus... and Loving It

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserLinux chooses Python as "interpretive language" of choice Ville Vainio answers 49 July 18th, 2005 07:48 AM