Thanks for this so how can i fix this please help
Thanks,
R8VI
Main Topics
Browse All TopicsHi,
I have the following code I am building two seprate strings and then before passing to DB adding them together but getting the error mentioned above.
How do i solve it The top level element shout be Questions
please help
Thanks,
R8VI
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
ok what happen is that initally i only had the following
<Questions>
<Qid>12</Qid>
</Questions>
QuesList.Add(GetNext(build
and so on then i wanted to pass the Scode as well but as per the C# code it is taken from a different datagrid so i needed
<Scodes>
<Scode>1</Scode>
<Scode>2</Scode>
</Scodes>
and so on so i created another sitring called
StringBuilder builderforSaleCTPASS = new StringBuilder(); and appened scode to it
so i thought i could do
QuesList.Add(GetNext(build
but it wont let me as u said i have to root nodes
So how do i change the code to have both questions and Scodes doesnt matter if you create another top level node for example
<PassingParameters>
<Questions>
<Qid>12</Qid>
</Questions>
<Scodes>
<Scode>1</Scode>
<Scode>2</Scode>
</Scodes>
</PassingParameters>
Thanks for the help so far
R8VI
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2009-10-15 at 12:45:28ID: 25584026
That just means that you can't have 2 root elements:
<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<parent>
<child />
</parent>
</root>