RivasBoy Posted July 14, 2010 Posted July 14, 2010 good night someone can help me with how to read contents of the xml to multiple text boxes. and change the value of the text boxes is possible to write this same update? Best regards and thanks for the help;) Quote
Leaders snarfblam Posted July 16, 2010 Leaders Posted July 16, 2010 You don't describe what the XML data is/represents or what the textboxes are supposed to represent/contain, or how you would like to separate the XML into textboxes. Please elaborate on the question. (This doesn't mean simply fill in the blanks I drew for you, but rather restate the question with any information that might be necessary to answer the question.) Quote [sIGPIC]e[/sIGPIC]
RivasBoy Posted July 16, 2010 Author Posted July 16, 2010 The xml file have the next structure: <balanço> <ano>2009</ano> <denominação>XPTO,LDA.</denominação> <imobilizado corporeo debito>41500</imobilizado corporeo debito> <imobilizado corporeo credito>41000</imobilizado corporeo credito> <clientes debito>23500</clientes debito> <clientes credito>23000</clientes credito> <caixa debito>1500</caixa debito> <caixa credito>500</caixa credito> <bancos debito>12000</bancos debito> <bancos credito>10000</bancos credito> </balanço> i need hel for the next: textbox1 read xml and display the value of <ano> textbox2 read xml and display the value of <denominação> .... best regards Quote
Administrators PlausiblyDamp Posted July 16, 2010 Administrators Posted July 16, 2010 That doesn't look like valid XML, element names cannot contain spaces. Where are you getting this XML from? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
RivasBoy Posted July 16, 2010 Author Posted July 16, 2010 PlausiblyDamp, thanks for the advice, indeed have the correct xml file. <?xml version="1.0" encoding="utf-8"?> <data> <balanço> <ano>2009</ano> <denominação>XPTO,LDA.</denominação> <imobilizado_corporeo_debito>41500</imobilizado_corporeo_debito> <imobilizado_corporeo_credito>41000</imobilizado_corporeo_credito> <clientes_debito>23500</clientes_debito> <clientes_credito>23000</clientes_credito> <caixa_debito>1500</caixa_debito> <caixa_credito>500</caixa_credito> <bancos_debito>12000</bancos_debito> <bancos_credito>10000</bancos_credito> </balanço> </data> I have also moved forward with the c # code for reading the xml file. more news soon. Than Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.