Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get streamed in XML into DAL to parse 1

Status
Not open for further replies.

zooxmusic

Programmer
Nov 24, 2004
96
US
Hi all,
I am very much still a novice at this stuff but I am learning more and more each day. I now understand (I think!) how a DAL works as far as Sql goes but I am now in the realm of xml. I can understand it if there is a static xml file but my problem is this.

My controller receives an xml document
Parse that document into domain object
Add domain object to db

I have the writing stuff done through DAOFactories and whatnut and understand how to do it because there is a datastore variable I get within the DAOSql file's but this xml thing has me upside down. There is no where to go get the xml from within the DAOXml file unless maybe I write it to disk but that seems silly. I have it in memory and don't need it written at all. It is streamed into me from the highest level. I am sure this is something simple I am just missing but never the less I am missing it. Could someone shed some light on how they would do this?

Brian


Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!
 
Ok,So in that example I sent you would you put another layer ontop of the DAOFactory that is returned? Because to me that seems to do the same thing as a repository. Hiding away where and how it is stored.

Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top