473,400 Members | 2,163 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,400 software developers and data experts.

Ignoring Elements in XSD

How do I write a schema that is only validating elements: 1,4,7,8,9 and
ignores every other element? I also need to not to care about the order
of the elements or how many are in between elements that I am trying to
validate.

XML:
<root>
<element1 />
<element2 />
<element3 />
<element4 />
<element5 />
<element6 />
<element7 />
<element8 />
<element9 />
</root>

XSD:
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="element1">
<xs:element name="element4">
<xs:element name="element7">
<xs:element name="element8">
<xs:element name="element9">
</xs:sequence>
</xs:complexType>
</xs:element>

Basically I need it to ignore ANY elements outside of my Schema
declaration and I may not know where they are located in the XML doc.

Thanks.
Jody

Jul 20 '05 #1
0 902

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

Similar topics

5
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
10
by: lac | last post by:
Hello all, I am trying to make horizontal bars of different lengths. I tought either SPAN or DIV would work but it only works for IE. I have a small example at: http://sedivy.com/test.htm Let...
0
by: eSapient | last post by:
For the following XSD: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">...
1
by: Taco | last post by:
The code below will serialize the Catalog object something like: <Catalog> <CatalogTitle>MyCatalog</CatalogTitle> <Books> <Book> <Title>Book1</Title> </Book> <Book> <Title>Book2</Title>...
3
by: Jody Greening | last post by:
How do I write a schema that is only validating elements: 1,4,7,8,9 and ignores every other element? I also need to not to care about the order of the elements or how many are in between...
4
by: David | last post by:
I'm using an XPathNodeIterator to select an element in an XML document that contains text I am going to put in a label on an aspx page. I want to be able to include HTML tags in the text read...
0
by: Ryan B | last post by:
Hi there, I've been searching the posts in this group and haven't been able to find anything that suitably solves my problem.. anyway... I am attempting to deserialize a class which I do not...
5
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
1
by: Neilen Marais | last post by:
Hi I'm trying to compare some text to find differences other than whitespace. I seem to be misunderstanding something, since I can't even get a basic example to work: In : d =...
9
by: jufemaiz: jc | last post by:
Is there any information out there on ignoring the desktop oriented conventions of ASP.NET and developing web app's more in line with traditional web app development. I need far more control over...
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
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
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
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
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
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...
0
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...

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.