XML Serialization - Load From A Database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Seth

    XML Serialization - Load From A Database

    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.


Working...