Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Validating XML Tag Contents but not the Tags?

Reply
Thread Tools

Validating XML Tag Contents but not the Tags?

 
 
Jim Whitehead
Guest
Posts: n/a
 
      08-15-2003
Hello,

We would like to use several tags that are ignored for validation purposes,
but whose content is not ignored.

That is, given an XML schema containing something like this:

<--! These tags would be allowed anywhere in the document, but ignored for
validation purposes -->
<xs:element name="ADD"/>
<xs:element name="DEL"/>
<xs:element name="OTH"/>

<xs:element name="Reference">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element name="XXX"/>
<xs:element name="YYY"/>
<xs:element name="ZZZ"/>
</xs:sequence>
</xs:complexType>
</xs:element>

We would like something like this to be a valid document:

<Reference xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test.xsd">
<XXX/>
<DEL><OTH><YYY/></OTH></DEL>
<ADD><ZZZ/></ADD>
</Reference>

Is there a way to do this?

Thank you very much for any insight you can provide!

Jim


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Matching XML Tag Contents with Regex Chris Python 6 12-11-2007 11:35 PM
Parsing an XML file and adding another tag, if the tag is not available / the value is null P Perl Misc 7 01-12-2007 03:28 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
<html> tag missing, but still validating windandwaves HTML 12 10-08-2005 10:40 AM
Validating XML against a DTD that is not supplied in the XML Schema Ben Jessel Java 0 08-05-2004 11:45 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57