INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Format simple xml as an chart

Format simple xml as an chart

(OP)
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>
<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>

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

RE: Format simple xml as an chart

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

Name          Amount   ChartSize
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> 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close