Re: [Simple-support] Serializing Attribute Groups
Brought to you by:
niallg
|
From: Jean C. <jlc...@ya...> - 2012-01-21 21:30:45
|
Hi Niall, That is correct. You define a set of attributes that you can reference as part of a complex type. Say you have 3 elements in a schema (library, book, and author) and each of these elements has an ID and Name attribute. Instead of explicitly defining those 2 attributes in each element, you could define a single attribute group that contains the common attributes, then reference the attribute group in each of the elements. Later on you could add a third element in the attribute group (say, year), and the 3 elements would now have it defined as an attribute without having to update the entire schema. More information is available on the link below: http://www.w3schools.com/schema/el_attributegroup.asp ________________________________ From: Niall Gallagher <gal...@ya...> To: Jean Calixte <jlc...@ya...>; "sim...@li..." <sim...@li...> Sent: Friday, January 13, 2012 7:35 PM Subject: Re: [Simple-support] Serializing Attribute Groups Hi Jean, I order to answer this question I would need more information, what do you mean by attribute group, is this just a collection of name value pairs that always appear? Thanks, Niall From: Jean Calixte <jlc...@ya...> To: "sim...@li..." <sim...@li...> Sent: Thursday, 5 January 2012 1:41 PM Subject: [Simple-support] Serializing Attribute Groups Hi Everyone, I have a XML schema that I would like to serialize using Simple. The schema contains elements whose attributes are part of attribute groups. Several types contain references to multiple attribute groups. Is there an ideal way to serialize this reference in the class I'm creating? I would like to avoid having to specify each attribute every time the attribute group appears in the schema--this would get messy if an update to the schema changes the attributes in a given group. Thanks! ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |