Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2005, 06:01 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Namespaces, Schemas & XmlSerializer

Hi All,

I have a C# class that I serialze to an xml file using the standard XmlSerializer object. We have just updated the xml so that it should now include a reference to a validating schema and use a custom namespace.

Q1. How do I include the reference to my schema whilst deserializing?
Q2. When deserializing with an XmlSerializerNamespaces object it will only prefix my elements with the namespace prefix, not any Attributes. How do I resolve this?

Many thanks,

Chris





Similar Threads
Thread Thread Starter Forum Replies Last Post
XML Schemas - Fixed Values jock_sbfc XML 3 February 13th, 2007 07:45 AM
Using constrainst on multiple schemas Chamkaur XSLT 1 December 15th, 2006 07:08 AM
Problems with namespaces & classes ayamas General .NET 1 October 12th, 2006 03:11 PM
Using XML Schemas in C++ Unmanaged Code RFickling XML 1 June 8th, 2005 08:23 AM
Regular expressions in XML schemas adrianbarry XML 10 April 7th, 2004 07:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.