OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] embedding xml schema in an instance doc

[ Lists Home | Date Index | Thread Index ]
  • To: <peej@mindspring.com>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] embedding xml schema in an instance doc
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Sun, 9 Jun 2002 01:52:09 -0700
  • Thread-index: AcIPd9xDLCSXqEuDTSuapyLbI5yE5QAGvhED
  • Thread-topic: [xml-dev] embedding xml schema in an instance doc

The XmlValidatingReader class supports validating documents with inline W3C XML Schema definitions. More information is available at 

	-----Original Message----- 
	From: peej@mindspring.com [mailto:peej@mindspring.com] 
	Sent: Sat 6/8/2002 10:37 PM 
	To: xml-dev@lists.xml.org 
	Subject: [xml-dev] embedding xml schema in an instance doc

	I'm attempteng to embed XML Schema elements within an instance document and running into trouble when Xerces attempts to validate, although XML Spy has no problem.  What I'd like to be able to do is put a "fragment" of XML Schema within an instance doc...like so:
	 <xsd:element name="record">
	    <xsd:element ref="darwin:DateLastModified" />
	    <xsd:element ref="darwin:InstitutionCode" />
	    <xsd:element ref="darwin:CollectionCode" />
	    <xsd:element ref="darwin:CatalogNumber" />
	    <xsd:element ref="darwin:ScientificName" />
	    <xsd:element ref="darwin:Genus" />
	    <xsd:element ref="darwin:Species" />
	I've tried a variety of things involving namespace declarations and namespace locations.  I'm wondering if I should even be able to do this.  Does an xml schema doc exist specifying XML Schema and if it does, should I not just be able to reference it from an instance as if it were any other schema document, via its namespace?
	Any help would be appreciated!  Thanks in advance.
	The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
	initiative of OASIS <http://www.oasis-open.org>
	The list archives are at http://lists.xml.org/archives/xml-dev/
	To subscribe or unsubscribe from this list use the subscription
	manager: <http://lists.xml.org/ob/adm.pl>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS