473,950 Members | 35,237 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can the XML <any> element restrict what datatype it stores?

Question:

Can the XML <any> element restrict what datatype it stores? I am
trying to write an extensible schema that has an element containing
unbounded <any> elements of boolean type. Is it possible to control
the <any> element within the schema or must something like an XSLT
template be applied instead?

I'd like to do something like this:

<xsd:complexTyp e name="subscribe ">
<xsd:element name="dataType" minOccurs="0">
<xsd:any namespace="##an y" type="xsd:boole an" minOccurs="0"/>
</xsd:element>
<xsd:element name="userName" type="xsd:strin g"/>
</xsd:complexType >

Thanks for your help!
Meredith
Jul 20 '05 #1
0 1517

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

Similar topics

4
1402
by: Angelos | last post by:
Hello again.... I am coding php in dreamweaver. And because I like to use it for the HTML parts I want my HTML code to be unquoted and not into echo statements. BUT I ended up in something like this <? if ($blabla == 1) { ?> <h1> blabla is one <h1> <? } elseif ($bloublou == 2) { ?> <form>
3
2670
by: PythonMan | last post by:
Any Software can change Python source code to Delphi ? thx --
0
1817
by: kyo | last post by:
class A { public: int a; }; struct testfun1 : public unary_function<const A&, bool> { bool operator()(const A &) const {
0
2223
by: Sebastian Faust | last post by:
Hi, I am thinking now for a while about a design decision. I would be glad if you can give me some advices which is maybe the better way for solving my problem. I wanna do something like described in the Bridge-Pattern. Therefore I have the following classes: Instrument InstrumentImpl InstrumentData
9
2794
by: shannonl | last post by:
Hi all, For some reason this bind is calling the donothing function, like it should, but is then allowing the text to be inserted into the Text widget. Here is the code: self.framebody.tag_config("name", underline=1) self.framebody.tag_bind("name", "<Any-KeyPress>", self.donothing)
0
1125
by: nidhidshah | last post by:
I am using stored procedures (in IBM DB2) with Crystal Reports XI to create reports. When I run the report from Crystal Reports, it runs fine for the first time. But second time onwards I get an error message (SQL 901) saying “Cursor is already open”. It seems I am missing some setting in the ODBC connection. Any idea what are settings required or how this can be fixed? And are there any options to return result set other than...
1
2111
by: jiffers | last post by:
I'm trying to figure out how to define an element in RNC so that its contents are validated if a definition matches, othewise no validation is done. The example given in the tutorial seems to indicate that you need to exclude by enumeration all defined attributes and elements: #this validates all attributes loosely, except for the defined xml:space attribute element example {
1
1311
pankajkmeena
by: pankajkmeena | last post by:
is it possible to capture control+alt+<any key> in PHP
6
3572
pankajkmeena
by: pankajkmeena | last post by:
is it possible to capture control+alt+<any key> in javascript
0
10171
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
11368
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10703
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9904
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7443
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6233
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6352
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4550
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3558
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.