none
Dataset Readxml - Parent Child Relationship RRS feed

  • Question

  • I'm trying to read an XML file into a Dataset object.  How  iterate the datatable to the get all the child rows?
    This is how it looks by default when you call
    dataset.readxml(books.xml);

    What is the inferred relationship when you call Readxml?

    table1 - books
    table2 - comments
    table3 - userComment


    <books>
        <book ISBN="10-000000-001" title="The Iliad and The Odyssey" price="12.95">
            <comments>
                <userComment rating="4" comment="Best translation I've read." />
                <userComment rating="2" comment="I like other versions better." />
            </comments>
        </book>
    </books>
    Saturday, July 7, 2007 1:17 AM

All replies