MS-Q325695 .NET Datasets require that a table can only be a child of one other table.

Dear Experts

Is there a solution for this problem?

MS-Q325695
.NET Datasets require that a table can only be a child of one other table.
http://support.microsoft.com/kb/325696/

I cannot modity the xml file because it is from a third party source.
Upgrading from VS.NET 2003 is not an option.

How do I get around this problem?

Please help
LVL 1
narmi2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
None that I know of.

Bob
0
JimBrandleyCommented:
If your problem is similar to the one shown in the article, then one possible solution is use XSL to transform the repeated element names under different parents when you read th XML. For example,
<?xml version="1.0" ?>
<OrdersInventoryData>
      <Order>
            <Item>
                  <id>1</id>
                  <qty>5</qty>
            </Item>
      </Order>
      <Inventory>
            <Item>
                  <id>1</id>
                  <qty>100</qty>
            </Item>
      </Inventory>
</OrdersInventoryData>

becomes:
<?xml version="1.0" ?>
<OrdersInventoryData>
      <Order>
            <Item>
                  <id>1</id>
                  <qty>5</qty>
            </Item>
      </Order>
      <Inventory>
            <InvItem>
                  <id>1</id>
                  <qty>100</qty>
            </InvItem>
      </Inventory>
</OrdersInventoryData>

Jim
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
narmi2Author Commented:
So how would I go about creating this xslt file?
0
JimBrandleyCommented:
It has to match your XML, so would depend on what it contains.

Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.