![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Simple XML & XSD Question [Thread Next] Re: Simple XML & XSD QuestionTo: NULL Date: 1/31/2005 9:07:00 AM Ruslan Popov wrote: > I wonder is there a way to embed a schema into the document, rather > then just referencing it. So that when the schema is needed it could > be obtained directly from the document. Hi, For sure, you can do that. See an example of inline schemas here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmconValidationInlineSchemas.asp http://groups-beta.google.com/group/microsoft.public.dotnet.framework.aspnet/attach/07869c7f5eda2495/sample.xml?part=2 However, using inline schemas generates new validation problems. For example, since the <schema> element is a child of the root element, the root element itself cannot be validated (when using an XmlValidatingReader for example). http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconvalidationwithinlinexsdschema.asp -- Patrick Philippot - Microsoft MVP MainSoft Consulting Services www.mainsoft.fr | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
