Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

XML Serialization - Load From A Database

Question posted by: Seth (Guest) on June 27th, 2008 07:20 PM
I'm not sure if this is the appropriate group for this post or not. Please
advise if it is not.

I have an xml structure similar to the following:

<xml>
<object1>
<id/>
<name/>
</object1>
<object2>
<id>
<name>
</object2>
<object3>
<id/>
<name/>
</object3>
</xml>

I created a schema from this where only 1 of the 3 objects can exist using
xs:choice. From this schema, I used the xsd utility to create my xml
serializable class.

My question is this. Each object (1 - 3) needs to be loaded based on the
results of a query to my database using my serialized vb code. What is the
preferred method for loading these objects? Each object is a class in my
generated vb code...

Thanks.


Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
 
Not the answer you were looking for? Post your question . . .
182,200 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors