473,480 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is there any way to get min/maxOccurs during validation?

I understand that I can get the SchemaType from XmlValidatingReader
during Read() and that is cool. But is there any way to get the
current XmlSchemaElement (or XmlSchemaAttribute for that matter)?

I need this because I am setting up my UI dynamically based on the
schema, and I need to know whether a field is required or not. :(

Any help greatly appreciated.

--
Aaron
Nov 12 '05 #1
3 1056
Not in the current version of .Net framwork. Next version should shave this
feature
Yan

"Aaron Boodman" <bo***@youngpup.net> wrote in message
news:91**************************@posting.google.c om...
I understand that I can get the SchemaType from XmlValidatingReader
during Read() and that is cool. But is there any way to get the
current XmlSchemaElement (or XmlSchemaAttribute for that matter)?

I need this because I am setting up my UI dynamically based on the
schema, and I need to know whether a field is required or not. :(

Any help greatly appreciated.

--
Aaron

Nov 12 '05 #2
> Not in the current version of .Net framwork. Next version should shave this
feature


Do you happen to know which class? I was looking through the longhorn
docs and didn't see anything like that. This is a very high priority
problem, so I would even consider using beta bits if it was going to
be made real in the future.

--
Aaron
Nov 12 '05 #3
public interface IXmlSchemaInfo {
...
XmlSchemaElement SchemaElement { get; }
....
}

You understand that I cannot guarantee this will not change in the final
product
Yan

"Aaron Boodman" <bo***@youngpup.net> wrote in message
news:91*************************@posting.google.co m...
Not in the current version of .Net framwork. Next version should shave
this
feature


Do you happen to know which class? I was looking through the longhorn
docs and didn't see anything like that. This is a very high priority
problem, so I would even consider using beta bits if it was going to
be made real in the future.

--
Aaron

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4281
by: Galen Harris | last post by:
I'm getting weird errors during transformations -- "System.Net.WebException. The remote server returned an error: (500) Internal Server Error." I'm on the 1.0 Framework. I've looked through...
0
1251
by: Pete Beech | last post by:
Hi, I've looked all over for any information about this, and either this is a bug that I cannot find reported or I've misunderstood something. Lets say, in the XML Designer in VS.NET 2003, you...
0
1317
by: Kurt | last post by:
Hi, (sorry if I'm cross posting - not quite sure where to put) I am basically trying to force the user of my web service to only send a valid dataset that is based on a schema I have created. ...
0
996
by: Robert Rae | last post by:
Does anyone know of a way to set minoccurs and maxoccurs from an attribute. An example would be: public string HelloWorld(DataInput dataInput) { return "Hello World"; } public class...
2
1654
by: hooomee | last post by:
Given: <xs:choice maxOccurs=5> <xs:element name="Foo" type="bar" /> <xs:element name="Foo1" type="bar" /> <xs:element name="Foo2" type="bar" /> </xs:choice> Is the choice made once and then...
4
2696
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
3
1725
by: Sebastian Stein | last post by:
Hi, I have the following XSD file (XML Schema 1.0): <xs:element maxOccurs="1" minOccurs="1" name="header"> <xs:complexType> <xs:sequence> <xs:element name="id" type="xs:positiveInteger"/>...
3
3178
by: jlauman | last post by:
I'm getting an error on line 6 of the code shown below. The error is: Value 'unbounded' is not allowed for attribute 'maxOccurs' I'd appreciate any help in resolving this. Thanks, Jack ...
3
2423
by: foolproofplan | last post by:
Maybe I am looking to far into a simple problem, but I am having quite a hard time figuring this out: I am currently trying to create a schema to represent an Element which contains other...
0
7033
marktang
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,...
0
6903
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...
0
7027
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6861
tracyyun
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...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2987
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.