Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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;)

  • Leaders
Posted
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.)
[sIGPIC]e[/sIGPIC]
Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...