Hello,
I have a schema that contains two "choice" elements, say "F1" and "F2" -
meaning either F1 or F2 can be present but not both.
I loaded this schema into a dataset, which created two columns in the
datatable "F1" and "F2". Now, I load the dataset with a value for F1 and not
for F2.
When I use the GetXML method of the dataset, the output produces both
elements F1 and F2, like shown below:
<F1>value1</F1>
<F2 />
which according to the schema is not right bcos only one element F1 or F2
has to be present and not both..
Any ideas on how the overcome this GetXML method behavior?.
Thanks. 2 1272
What version of the framework are you using?
Thanks,
Zafar
"Ganesh Muthuvelu" <Ga*************@discussions.microsoft.com> wrote in
message news:F0**********************************@microsof t.com... Hello, I have a schema that contains two "choice" elements, say "F1" and "F2" - meaning either F1 or F2 can be present but not both. I loaded this schema into a dataset, which created two columns in the datatable "F1" and "F2". Now, I load the dataset with a value for F1 and
not for F2. When I use the GetXML method of the dataset, the output produces both elements F1 and F2, like shown below:
<F1>value1</F1> <F2 />
which according to the schema is not right bcos only one element F1 or F2 has to be present and not both..
Any ideas on how the overcome this GetXML method behavior?.
Thanks.
Version 1.1
If framework 2.0 provides a method for this, I have no issues in using 2.0.
Thanks,
Ganesh
"Zafar Abbas" wrote: What version of the framework are you using?
Thanks, Zafar
"Ganesh Muthuvelu" <Ga*************@discussions.microsoft.com> wrote in message news:F0**********************************@microsof t.com... Hello, I have a schema that contains two "choice" elements, say "F1" and "F2" - meaning either F1 or F2 can be present but not both. I loaded this schema into a dataset, which created two columns in the datatable "F1" and "F2". Now, I load the dataset with a value for F1 and not for F2. When I use the GetXML method of the dataset, the output produces both elements F1 and F2, like shown below:
<F1>value1</F1> <F2 />
which according to the schema is not right bcos only one element F1 or F2 has to be present and not both..
Any ideas on how the overcome this GetXML method behavior?.
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: softengine |
last post by:
I have a dataset with multiple tables I need exported to Excel. I can get it
into Excel into one worksheet however I want there to be one worksheet for
each datatable in the dataset. If I dump my...
|
by: em |
last post by:
Hello,
I transfer data from a dataset to an XML-document by
using the GetXml-method in VB.NET. I noticed, that for
datafields, which are empty (have no content) in the
dataset, no elements are...
|
by: Mark |
last post by:
I have a basic question about xml encoding and predefined characters
in xml. I know that characters such as "<" get encoded to < My
question is when does this actually happen? I'm using the...
|
by: Chris |
last post by:
I apply a dataview with a filter to a datagrid to remove rows that a
user does not want to see. However when I attempt to extract the data
from the underlying dataset using GetXML() the entire...
|
by: Rajesh AVRS |
last post by:
Hi guys
I have a requirement where I needed to extract the DataSet contents as
XML.
After filling the dataset, I am calling GetXml() and is working fine.
However, one of the column which I...
|
by: Mark |
last post by:
I have run into a problem that I have not found an easy solution for.
My data all resides in a dataset and we're using getxml to return the
xml and send that on to the webserver for processing. It...
|
by: Elad |
last post by:
hi, I'm sorry if this isn't the right group, I just didnt know which category
to place this question in.
Anyway, I have 2 problems: I got a web service which connects to a DB and
puts the data in...
|
by: lucky |
last post by:
Hi guys!
i'm facing very strange problem.
i've a DataSet object in which i add some tables the some logic
finishes successfully. and after then i tried to get the XML string
from the DataSet...
|
by: lucky |
last post by:
Hi guys!
i've filled the DatSet object and was trying to get xml data from it. i
used GetXml() method for that.
it worked fine when all columns of the datatable has data. it generates
perfectly...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |