Skip to Content
Using XML with Legacy Business Applications
book

Using XML with Legacy Business Applications

by Michael C. Rawlins
August 2003
Intermediate to advanced content levelIntermediate to advanced
624 pages
15h 3m
English
Addison-Wesley Professional
Content preview from Using XML with Legacy Business Applications

Named Types and Anonymous Types

Although I didn't point it out at the time, we have already seen examples of named and anonymous types. A named type has a name Attribute in the xs:simpleType or xs:complexType Element where it is defined. In contrast, an anonymous type has no name and is defined in-line, immediately following the Element where it is used. In such cases the Element has no type Attribute. SimpleCSV1.xsd, shown in the beginning of the chapter, uses only anonymous types. SimpleCSV6.xsd uses named types for the Row and ColumnXX Elements.

The scope of anonymous types is local to the Element to which they apply. As such, they are not reusable. This flies in the face of good software engineering practices for a number of obvious reasons. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning XML with C# 7: XML Processing and Data Access for C# Developers

Beginning XML with C# 7: XML Processing and Data Access for C# Developers

Bipin Joshi
XML Hacks

XML Hacks

Michael Fitzgerald
XML Unleashed

XML Unleashed

Michael Morrison
XML in a Nutshell, 3rd Edition

XML in a Nutshell, 3rd Edition

Elliotte Rusty Harold, W. Scott Means

Publisher Resources

ISBN: 0321154940Purchase book