Writing with XML Class file created using XSD.exe

Created the class file using XML.xsd from an XML file. How we set/populate 
the data with the class file where one of the objects is 2D.

2D object - NewOrderOrdersPaymentsPayment[][] 
class - NewOrderOrdersPaymentsPayment


The class file is a s follow:

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class NewOrderOrders {
    
    private string transIDField;
    
    private NewOrderOrdersPaymentsPayment[][] paymentsField;
    
    /// <remarks/>
    
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string TransID {
        get {
            return this.transIDField;
        }
        set {
            this.transIDField = value;
        }
    }
    
    
    /// <remarks/>
    
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string OrderNo {
        get {
            return this.orderNoField;
        }
        set {
            this.orderNoField = value;
        }
    }
    

    
    /// <remarks/>
    
[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    [System.Xml.Serialization.XmlArrayItemAttribute("Payment", 
typeof(NewOrderOrdersPaymentsPayment), 
Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
    public NewOrderOrdersPaymentsPayment[][] Payments {
        get {
            return this.paymentsField;
        }
        set {
            this.paymentsField = value;
        }
    }
    
   
    }
}


/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class NewOrderOrdersPaymentsPayment {
    
    private string payMethodField;
    
    private string amountField;
    
    /// <remarks/>
    
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string PayMethod {
        get {
            return this.payMethodField;
        }
        set {
            this.payMethodField = value;
        }
    }
    
    
    /// <remarks/>
    
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string Amount {
        get {
            return this.amountField;
        }
        set {
            this.amountField = value;
        }
    }
    

    }
}

0
bijay (1)
9/6/2007 3:00:05 PM
dotnet.xml 7266 articles. 0 followers. Follow

0 Replies
539 Views

Similar Articles

[PageSpeed] 24

Reply:

Similar Artilces:

XML Custom serialization
Hi all, I want to serialize a class in a customized way. But I don't want to implement the ISerializable interafce because I don't want to take care of every new field I insert to the class. What I need is a way to customize the serialization of a specific field in my class but leave the rest to the build-in serialization. Any guidance will be appreciated. Ro'ee <sfa.roy@gmail.com> wrote in message news:7243a1eb-3fa3-43e0-8339-d90f890e6716@b1g2000hsg.googlegroups.com... > Hi all, > > I want to serialize a class in a customized way. But I don't want to >...

Write
I am trying to change the default margins. I am requested to use the Write mode to do this. What is Write, and how do I access it? Are you using voice recognition? Margins are simply changed in the Arrange Menu in Publisher. Are you in the right newsgroup? -- Mary Sauer MS MVP http://office.microsoft.com/ http://www.mvps.org/msauer/ news://msnews.microsoft.com "CBC" <anonymous@discussions.microsoft.com> wrote in message news:183bb01c44a40$107bd5d0$a501280a@phx.gbl... > I am trying to change the default margins. I am requested > to use the Write mode to do this. W...

"File not found" and "The form name is misspelled..." errors
I am still bulding a database. It contains no data, and contains no embedded macros. Yet, when I go to build code, I get these errors: "File not found" followed by "The form name * is misspelled or refers to a form the doesn't exist" The problem does not lie in the form that automatically opens when the database opens, and there are no embedded macros (I've read that these are the two main places an error such as this can occur). I did a search in the code box, and do find the two subforms listed even though neither contains any kind of code. I ca...

How to use windows xp chart wizard to add secondary axis
previous posts unhelpful inserting chart with x values in a2:a11 and y(x) values in b2:b11 plotting y(x) versus x TIME FOR USER-DEFINED CHARTING!!! first, select the data you want to put in the chart, then click th chart wizard. Click the "Custom types" tab, then scroll down to th "Line-Column on 2 Axes". it should be a cinch from there. hope this is what you need -- medicenpringle ----------------------------------------------------------------------- medicenpringles's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1645 View this thread...

pst files and VPN issues
I'm looking for suggestions on how to configure .pst files for remote users who access a network using VPN. Due to the large size of these files (often over a gigabyte), Outlook's performance is seriously affected and often freezes during the archive process. What are your company's polices for remote users accessing .pst files and is there a way short of saving them locally to access them without affecting Outlook's performance? If the .pst has to be stored and backed up locally, does anyone have security advice for protecting .pst files with sensitive material? Encrypted f...

Doc class with Dialog App.
I have a dialog based application that runs some testing equipment and I would like to present the results as a document with file save as and print features. Can I just create a new class based upon the CDocument class and invoke it to create a new document or is there some skullduggery that I need to take care of first since I am in a dialog? Ron H. x-- 100 Proof News - http://www.100ProofNews.com x-- 3,500+ Binary NewsGroups, and over 100,000 other groups x-- Access to over 1.6 Terabytes per Day - $8.95/Month x-- UNLIMITED DOWNLOAD I am curious why not simply use a doc/view ...

Is there a way for Windows Service to Read/Write HKCU Reg key ?
Hi: I'm writing a Windows Service program which needs to read/write the HKEY_CURRENT_USER registry key for the current logged on user. I know that for a Windows service does not have concept of HKCU since it is always running in SYSTEM's context. But is there a way (trick?) for a service to access the HKCU registry key? Thanks In Advance ! Polaris Hello Try, from a user application (the one that is logged on, or the current user), to send the services the user's SID. Then access the HKCU through HKEY_USERS\users_sid\............ Hope that helps, Elias "Polaris&qu...

Macro Help- combining "CS" files
Below is the macro I have to go to a certain file and combine all spreadsheets. I did not write this macro myself. I just received it and modified it to work for my situation. When this maco is run it gets to the first file and says I cannot change a read only file and says I must unprotect the worksheet. This sheet is not protected but I really only want to copy the info on it anyway. Is there a way to modify this macro to copy the information. I could save all of the "CS" files as new files but that would defeat the purpose of automating this job Any help is greatly a...

Import data from DBF files
What's the best way to import a large dbf file into Access (records from a DBase file)? I have one dbf that has over 220,000 records in it. It gets to about 75% and says "The search key was not found in any record." Everything is patched to the max (Windows, Office, Jet, etc). This doesn't happen with any other dbf file, but they are all smaller. Also, oddly, I can copy and paste 50,000 records in a shot and paste them through a query, but I don't want to keep doing that for every large dbf I have. The Access tables have no problem holding the data, just transf...

SHRINK/REDUCE EXCEL FILE SIZE
Hi Friends, A useful post on reducing the excel workbook size. This may reduce the file size dependently from 10% to 500% . http://www.excelitems.com/2010/11/shrink-reduce-excel-file-size.html ________________________________________ Thanks & Regards Ashish Jain (Microsoft Certified Application Specialist) (Microsoft Certified Professional) http://www.excelitems.com http://www.openexcel.com ________________________________________ ...

Use Same Parameter For Different Fields Within Query?
I'm trying to build a query which asks for one parameter "SEARCH TERM", and locates records from one table, where the string "SEARCH TERM" is found anywhere within any of three fields. ie. Product List - Has Product Code, Name and Description fields. I would like one parameter box to be displayed and have it search all three fields within the table to return any records that meet the criteria. Any suggestions would be appreciated. Dan Walters You can reuse the parameter under different fields. In the Criteria row under the first field, enter: Like "*&q...

Spam filtering using headers: possible?
Hi, My ISP has a spam rating system whereby it inserts a header into the mail like "x-me spamrating: high" I can't find a way to create rules based on headers - is it possible in Outlook 2003? -- Regards Jon Yes, there's a "with specific words in the message header" criteria in the Rules Wizard. "Jon" <spam@jonparker.plus.com> wrote in message news:MPG.1eaaa2fd53db756298a012@text.usenet.plus.net... > Hi, > > My ISP has a spam rating system whereby it inserts a header into the > mail like "x-me spamrating: high" > >...

how to detect which macros are no longer in use?
Hi all, Over the years I created a lot of macros, some in modules of certain "normal" xls files, others in my personal.xls. In some cases there are more than macro in one module. I use XP and Excel 2000. Only "normal" modules are used. Some procedures call other macros which are not necessarily in the same module. I want to get rid of macros I don't need, but need a method (a macro?) that shows me wether a macro is called for in one or more other macros and also shows me which macros they are. I have no idea how to accomplish this. Your help will be much appreciated....

CSV to XML, now to validate
hiya, I have a 3rd party function that converts a CSV to an XML doc. I now need to validate the xmlDoc.I understand that I need a valid XSD for the newly created xmlDoc, but the xmlDoc contains no schema definitions etc.I'm not sure how to create an XSD, so that the fields are restricted to "integer" datatypes etc. Been looking for a while.I assume that I don't have to manually write an XSD?maybe I should create a "dummy" table in sqlServer, then generate a dataset to get the XSD?Or, maybe vis studio 2003 has tools to make this easier? Any suggestions appreciated...

"Rule Could not be Created, check your folder permissions"
Outlook 2002, WinXP Pro.. tried adding work's exchange server but couldn't access it through the internet. Removed the Exchange account from Tools->Email Accounts, and now cannot create message rules with the "Organize" button on the toolbar. Any way to restore the permissions? Try running Detect and Repair. Also, ask your Exchange admin for the protocol to access your Exchange server mail. He will probably have to set you up with a VPN connector and give you some instructions. -- Milly Staples [MVP - Outlook] Post all replies to the group to keep the discuss...

Writing formula for excel worksheet
Item Rate1 Rate2 Rate3 A 3 4 6 B 8 5 23 C 56 5 78 Above is my excel sheet. I want to write some formula so that in every row cell having minimum rate should come bold. Like For Item A - Rate1(3) for Item B - Rate2(5) For Item C - Rate2 (5) There may be a neater way but this works. Somewhere in you sheet in a cell type =min(A1:a4), I used L1 Change this to watever range you are trying to evaluate. Then select this range and click format - conditional format - cell value - is equal to =($L$1) and apply your bold font. The lowest value in the range will then become bold. Mike "Gaur...

write protect/write redirect/kios mode
Hey, I LOVE snapshots in virtualmachines and think it would be awesome to have something like this for my main windows install. Anyone know of any hardware/software to redirect writes to another drive/file/memory/hardware? Or hardware to write protect a drive for kios's (i found some once befor the reverted all changes on shutdown, but cant find it anymore ><) I know VSS(virtual shadow copy service) has a function to redirect on write and wondering if i might be able to use that :/ It will just make everything cleaner, and give alot of flexiblity to setting up ...

How to get the sectors/clusters of a particular file?
Hi, How to get the sectors/clusters of a particular file? I am working on Windows 2000. Hoping to get a reply soon. TIA. regards, Jahfer V P. No particular way I know of. If you have certain privileges you might be able to use DeviceIoControl(), but there isn't much you can do with this information. joe On Mon, 20 Jun 2005 23:33:02 -0700, "Jahfer V P" <JahferVP@discussions.microsoft.com> wrote: >Hi, > >How to get the sectors/clusters of a particular file? >I am working on Windows 2000. > >Hoping to get a reply soon. >TIA. > >regards, &g...

XSLT: Creating anchors from outer XML files
Hi, I'm trying to put the links (href attribute of the <a> element) out of my XSLT files, in a XML file, and read it from the stylesheet. I suppose that I have to use the document() function to link to the XML file containing the URLs, but I don't know how to do it. I've tried something like this: This is XML file containing the URLs (link.xml): <?xml version="1.0" encoding="utf-8" ?> <LINKS> <L1> /SomePage.aspx </L1> </LINKS> And this is the code from the stylesheet: <a href="{document('link.xml')/L...

How to replace two system files?
I have an XP machine. Have just replaced a couple files from a W7 machine. The files are:- c:\windows\system32\drivers\disk.sys c:\windows\system32\drivers\partmgr.sys ....and now I can't boot the XP machine. How to get back to before I replaced the files? Thanks. "John Smith" <JohnSmith@nospam.com> wrote in message news:uLL8mqL0KHA.264@TK2MSFTNGP05.phx.gbl... > I have an XP machine. Have just replaced a couple files from a W7 machine. > The files are:- > c:\windows\system32\drivers\disk.sys > c:\windows\system32\drivers\partmgr.sys > ....

Cannot open .msg files saved from Outlook to network share
Some of my users have dragged and dropped emails into their network shares creating .msg files. When they try to open some of the files they get the following popup: 'The messaging interface has generated an unknown error. If the problem persists, restart Outlook.' This only happens for some of the saved emails. They are using Outlook 2000 from Office. God only knows why they did this and didn't use autoarchive! How many training sessions does someone have to do?! Anyway, anyone know how I can open them or even better, why I cant? Regards Dave ...

Creating modeless dialogs
Hi there, I'm tempted to believe that the answer to my upcoming question is so elementary as to be laughable, but I've been tortured by this problem for so long! I was recently asked to complete the implementation of an application that's being built in VC++ (version 7.1.3088). Unfortunately, what I inherited was replete with errors and undesireable behaviour... I've been able to address all but one issue: Entering data into an edit control causes the corresponding dialog to close! My research has led me to believe this is a "modal vs. modeless" dialog issu...

Cannot write to memory location
I can not (all of the sudden) run Publisher in the last week. When starting to run it, I get that it cannot write to a certain memory locaiton, so it is shutting down. I need to get this program working. I have read through this forum and tried the different fixes as well as the knowledge base (emptied the temp file, disabled anti-virus, etc.) but it still won't work. An example is: "The instruction at "0x77f585c0" referenced memory at "0x00000000". the memory could not be "written". Click on OK to terminate the program." The header read...

deleting temp web files
When I delete the temporary internet files with the Iexplorer menu of Tools->InternetOptions->General->DeleteFiles Does this delete said files only for the current User account logged on? Or does it delete said files for all user accts on machine ? Just the current user I think. neil "RB" <NoMail@NoSpam> wrote in message news:#FNlBGX3KHA.1016@TK2MSFTNGP02.phx.gbl... > When I delete the temporary internet files with the Iexplorer menu of > Tools->InternetOptions->General->DeleteFiles > Does this delete said files only for the current...

Creating connecting arrows for process flow charts
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel Is it possible to create connecting arrows which snap between process flow chart boxes such that when you drag the boxes afterwards the arrows will stay connected with the boxes? Unfortunately [?] Word got the short end of the stick with the new graphics engine � probably due to time constraints. Apparently it isn't something that can be resolved by an update... At least it hasn't been so far. If the SmartArt Graphics won't provide what you need create your flow chart in either Excel or PowerPoint...