473,666 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML sub hierarchy using classes

Stu
Hi,

Ive been using classes as output from webservices which until now have
worked well and have serialised into the xml i wanted.
Now i want to have a structure of
clients which have accounts which have securities

So ive defined the following classes (See below) when I look a the xml
when it gets to the <clientsaccount s> i dont see the full serialised
definition
Any ideas TIA

Stu
Public Class ClientDetails
Public ClientId As String = ""
Public clientInError As Boolean = False
Public clientAccounts( ) As ClientAccounts
End Class
<Serializable() > _
Public Class ClientAccounts
Public accountId As String = ""
Public accountnominal As Decimal = 0
Public ClientNominal As Decimal = 0
Public securities() As accountSecurity
End Class
<Serializable() > _
Public Class accountSecurity
Public securityId As String = ""
Public currency As String = ""
Public holdingInError As Boolean = False
End Class
<wsClientInfoRe sult>
<ClientDetail s>
<ClientId>strin g</ClientId>
<clientInError> boolean</clientInError>
<clientAccounts >
<ClientAccoun ts xsi:nil="true" />
<ClientAccoun ts xsi:nil="true" />
</clientAccounts>
</ClientDetails>
</wsClientInfoRes ult>

Nov 23 '05 #1
0 834

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2251
by: John J. Lee | last post by:
I'm trying to change a base class of a big class hierarchy. The hierarchy in question is 4DOM (from PyXML). 4DOM has an FtNode class that defines __getattr__ and __setattr__ that I need to override. Lots of classes derive from FtNode, often through further base classes, eg. HTMLDirectoryElement --> HTMLElement --> Element --> FtNode There are many leaf classes like HTMLDirectoryElement. The problem
2
4717
by: Matt | last post by:
Hello, I would like to generate what I call an "overall class hierarchy" in UML automatically derived from my C++ code source. An example of what I seek: http://biz2tek.com/tmp/overall-class-hierarchy-sde (This link may be temporary; email me if you can't get access to it, I
822
29367
by: Turamnvia Suouriviaskimatta | last post by:
I 'm following various posting in "comp.lang.ada, comp.lang.c++ , comp.realtime, comp.software-eng" groups regarding selection of a programming language of C, C++ or Ada for safety critical real-time applications. The majority of expert/people recommend Ada for safety critical real-time applications. I've many years of experience in C/C++ (and Delphi) but no Ada knowledge. May I ask if it is too difficult to move from C/C++ to Ada?...
2
1457
by: Lorenzo Castelli | last post by:
Hi, I'm trying to emulate the behavior of Java and C# interfaces in C++. In particular I want to create a hierarchy among the interfaces and a corresponding hierarchy among the implementations. I tried to implement it using abstract base classes and multiple inheritance, but I'm having some problems. Here is some sample code:
2
2005
by: Lorenzo Castelli | last post by:
This is an old problem of mine. Basically I have an abstract base class which represents a generic iterator over a collection of elements, and various derived classes that implement the traversing on specific data structures. For each iterator I want to be able to specify the four possible const combinations, corresponding to the various void* for pointers, with the possibility to perform conversions from non-const to const just like...
0
1909
by: Siphiuel | last post by:
Hi everyone. When using visitor pattern, we have a nasty dependence on the types of visitable objects that is coded way on top on the visitor hierarchy. i mean, like this: class AbstractVisitor { public: virtual void visit(Object_type_1 *); virtual void visit(Object_type_2 *)
3
3326
by: krzysztof.konopko | last post by:
Hello! I want to design a class hierarchy with one base abstract class, let's say CBase. I have a predicate that every object in the class hierarchy must have a parent object of type from this class hierarchy but only objects of some of these types can be a parent. Example: class CFruit : public CBase { }; class CBranch : public CBase { };
6
369
by: Nikola | last post by:
Is it possible in C++ to create a class hierarchy by inheritance that spans across various namespaces? For example, say I want to create a class which would behave like object type in C#, so that all classes I have would be below it in inheritance hierarchy, but my classes are scattered throughout various namespaces. Say I have 2 classes in namespace A and 2 in namespace B, where namespace A and namespace B are not related, and now I...
2
1674
by: Anton Bredikhin | last post by:
Hello! I have a class hierarchy that consists mainly of one base class CtxBase, and two children: LoginCtx and DisconnectCtx. Now, there's a need to provide an interfaces for this hierarchy. I'd like to export this classes from a DLL. And I'm in doubt how can I achieve this? My first option was to define a base interface (ICtxBase) and then
2
2693
by: Rob Kirkpatrick | last post by:
Hi All, I just finished debugging some code where I needed to determine why one subclass had a bound method and another did not. They had different pedigree's but I didn't know immediately what the differences were. I ended up walking the hierarchy, going back one class at a time through the code, for the two subclasses (hierarchy ~7 classes deep each) to see whom they inherited from. Short of writing this down on
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.