473,396 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

anyattribute ##other?

hi all,

I have a question with respect to anyAttribute functionality. Consider
the following XML excerpt

<?xml version="1.0" encoding="UTF-8"?>
<object xmlns="urn:foo:ob" xmlns:it="urn:foo:it"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
.....
<item param="value1" it:test="value2"/>
.....
</object>

now, my schema needs to express/restrict that

1. the item element (in the urn:foo:ob NS) has a required attribute
param (no NS prefix required).

2. the item element (in the urn:foo:ob NS) can have multiple optional
attributes (anyAttribute) from a NS other than urn:foo:ob. These
attributes must have a NS prefix.

Note that using anyAttribute="##other" is not sufficient, as this
still allows to add attributes without NS prefix.

can someone help me ahead with this problem?
many thanks
thomas
Jul 20 '05 #1
0 1062

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

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
0
by: jlea | last post by:
I using anyAttribute in a base class and this is causing problems in a derived class. I then use xsd to generate C# classes that serialize and deserialze XML. The following schema is what I'm...
1
by: jlea | last post by:
Does any know how to tell xsd.exe (or Xmlserialize or Xmldeserialize) not to read/write the "xsi:*" type attributes for complex classes that inherit from other complex classes since after the first...
1
by: Jeff T. | last post by:
I am noticing some VERY odd behavior when serializing and deserializing classes that were generate using the XSD.exe utility. Can anyone confirm if this is a bug (or it I am just doing something I...
8
by: Vanga Sasidhar | last post by:
I have four computers. One computer - Win XP Two computers - Win 98 One computer - Win ME I designed some pages in my computer having Win XP operating system. I installed dot net...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
64
by: yossi.kreinin | last post by:
Hi! There is a system where 0x0 is a valid address, but 0xffffffff isn't. How can null pointers be treated by a compiler (besides the typical "solution" of still using 0x0 for "null")? -...
3
by: amirgon | last post by:
Hi. I would like to allow any attribute from two distinct namespaces on a specific element. However, it seems that anyAttribute can appear only once in a sequence or a group. Is there any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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
jinu1996
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...
0
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...
0
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,...

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.