Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format simple xml as an chart

Status
Not open for further replies.

intose

IS-IT--Management
Mar 9, 2011
3
SE
Hello,

I am about to export data from an ERP system witch will contain 3 values whitch i want to present as an chart.

The values are
Budget
Invoiced
Pending

like this (am new to xml and best practice)
Code:
<Value>
[indent]<Name>Budget</Name>[/indent]
[indent]<Amount>100</Amount>[/indent]
[indent]<ChartSize>100px</ChartSize>[/indent]
</Value>
<Value>
[indent]<Name>Pening Orders</Name>[/indent]
[indent]<Amount>20</Amount>[/indent]
[indent]<ChartSize>20px</ChartSize>[/indent]
</Value>
<Value>
[indent]<Name>Invoiced</Name>[/indent]
[indent]<Amount>60</Amount>[/indent]
[indent]<ChartSize>60px</ChartSize>[/indent]
</Value>

i this case i want to present budget as one bar ant the two other obove each other like this.

thing is that i can do what ever export i need but want it as simple as possible.

Is this possible to use XML and XML styles to get desired result? Could somone point me in right direction?

Thanks in advance
//T
 
For example, you can import the XML-data into Excel.
So you will get a table which you can then evaluete as you need:
Code:
[b]Name          Amount   ChartSize[/b]
Budget           100     100px
Pening Orders     20      20px
Invoiced          60      60px

I tried it only with Excel 2003, where this option is located in menu Data/XML/Import...

Btw, I added to your example the root element <Table>:
Code:
<Table>
<Value>
  <Name>Budget</Name>
  <Amount>100</Amount>
  <ChartSize>100px</ChartSize>
</Value>
<Value>
  <Name>Pening Orders</Name>
  <Amount>20</Amount>
  <ChartSize>20px</ChartSize>
</Value>
<Value>
  <Name>Invoiced</Name>
  <Amount>60</Amount>
  <ChartSize>60px</ChartSize>
</Value>
</Table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top