Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Is it possible to import XML with master-detail data into Excel 2003?

Hello!

Our application generates Excel report with lot of master-detail
information. Something like this:



Department1 info

Employer1 of dept 1

Employer2 of dept 1

Employer3 of dept 1



Department2 info

Employer1 of dept 2

Employer2 of dept 2

Employer3 of dept 2

:

Previously we did it using VBA. Now we are thinking about using new XML
features of Excel 2003. I read many articles on MSDN, but now I understand
how to import simple list using XML. But I have no idea, how to import
repeating Master-Detail list. I am new to XML so may be don't understand
something simple.



Is it possible to such things?



Thank You in advance

Boris




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Is it possible to import XML with master-detail data into Excel 2003?

Yes, it's possible: the master-detail structure is flattened.
Example: this XML ...

<people
<department
<idFooBar001</id
<employee
<nameCharles</name
<age27</age
</employee
<employee
<nameJohn</name
<age21</age
</employee
</department
<department
<idHeyFoo002</id
<employee
<nameMichel</name
<age29</age
</employee
<employee
<nameHerbert</name
<age32</age
</employee
</department

is rendered like this:
ID NAME AGE
--------- -------- ---
FooBar001 Charles 27
FooBar001 John 21
HeyFoo002 Michael 29
HeyFoo002 Herbert 32



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Is it possible to import XML with master-detail data into Excel 2003?

Hello!

Thank You for Your answer.

Is it possible to customize it? Our report is quite complex.

Here is simple example

----

FooBar001 name

FooBar001 address

Charles name, Charles tel

Charles comment

John name, John tel

john comment

HeyFoo name

HeyFoo address

----

Our main target is to give user ability to customize Excel template and load
structural data into it.

Now we use our own vba program, that load data into template. But may be we
can simplify our program (or even throw away :) ) using new XML capabilities
of Excel? We are using Excel 2000 features currently. May be even 97.



Thank You in advance

Boris


"Francesco Sblendorio" wrote in message
...
Yes, it's possible: the master-detail structure is flattened.
Example: this XML ...

<people
<department
<idFooBar001</id
<employee
<nameCharles</name
<age27</age
</employee
<employee
<nameJohn</name
<age21</age
</employee
</department
<department
<idHeyFoo002</id
<employee
<nameMichel</name
<age29</age
</employee
<employee
<nameHerbert</name
<age32</age
</employee
</department

is rendered like this:
ID NAME AGE
--------- -------- ---
FooBar001 Charles 27
FooBar001 John 21
HeyFoo002 Michael 29
HeyFoo002 Herbert 32





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Is it possible to import XML with master-detail data into Excel 2003?

XSLT?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Boris Glazyrin" <bglazyr(c)fors.ru wrote in message
...
Hello!

Thank You for Your answer.

Is it possible to customize it? Our report is quite complex.

Here is simple example

----

FooBar001 name

FooBar001 address

Charles name, Charles tel

Charles comment

John name, John tel

john comment

HeyFoo name

HeyFoo address

----

Our main target is to give user ability to customize Excel template and

load
structural data into it.

Now we use our own vba program, that load data into template. But may be

we
can simplify our program (or even throw away :) ) using new XML

capabilities
of Excel? We are using Excel 2000 features currently. May be even 97.



Thank You in advance

Boris


"Francesco Sblendorio" wrote in message
...
Yes, it's possible: the master-detail structure is flattened.
Example: this XML ...

<people
<department
<idFooBar001</id
<employee
<nameCharles</name
<age27</age
</employee
<employee
<nameJohn</name
<age21</age
</employee
</department
<department
<idHeyFoo002</id
<employee
<nameMichel</name
<age29</age
</employee
<employee
<nameHerbert</name
<age32</age
</employee
</department

is rendered like this:
ID NAME AGE
--------- -------- ---
FooBar001 Charles 27
FooBar001 John 21
HeyFoo002 Michael 29
HeyFoo002 Herbert 32







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Is it possible to import XML with master-detail data into Excel 2003?

Hello!
We thinked about it. May it is our target.
But still have no idea, how to allow user to modify template without calling
a programmer.
Boris


--------------
"Bob Phillips" wrote in message
...
XSLT?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Boris Glazyrin" <bglazyr(c)fors.ru wrote in message
...
Hello!

Thank You for Your answer.

Is it possible to customize it? Our report is quite complex.

Here is simple example

----

FooBar001 name

FooBar001 address

Charles name, Charles tel

Charles comment

John name, John tel

john comment

HeyFoo name

HeyFoo address

----

Our main target is to give user ability to customize Excel template and

load
structural data into it.

Now we use our own vba program, that load data into template. But may be

we
can simplify our program (or even throw away :) ) using new XML

capabilities
of Excel? We are using Excel 2000 features currently. May be even 97.



Thank You in advance

Boris


"Francesco Sblendorio" wrote in message
...
Yes, it's possible: the master-detail structure is flattened.
Example: this XML ...

<people
<department
<idFooBar001</id
<employee
<nameCharles</name
<age27</age
</employee
<employee
<nameJohn</name
<age21</age
</employee
</department
<department
<idHeyFoo002</id
<employee
<nameMichel</name
<age29</age
</employee
<employee
<nameHerbert</name
<age32</age
</employee
</department

is rendered like this:
ID NAME AGE
--------- -------- ---
FooBar001 Charles 27
FooBar001 John 21
HeyFoo002 Michael 29
HeyFoo002 Herbert 32











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Is it possible to import XML with master-detail data into Excel 2003?

Boris,

Either way I think you have some complex programming here, You either will
need to use VBA to do the formatting, or you could XSLT. XSLT is n ot
simple, and it is a language in its own right, so I think you might be best
to commission a programmer.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Boris Glazyrin" <bglazyr(c)fors.ru wrote in message
...
Hello!
We thinked about it. May it is our target.
But still have no idea, how to allow user to modify template without

calling
a programmer.
Boris


--------------
"Bob Phillips" wrote in message
...
XSLT?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Boris Glazyrin" <bglazyr(c)fors.ru wrote in message
...
Hello!

Thank You for Your answer.

Is it possible to customize it? Our report is quite complex.

Here is simple example

----

FooBar001 name

FooBar001 address

Charles name, Charles tel

Charles comment

John name, John tel

john comment

HeyFoo name

HeyFoo address

----

Our main target is to give user ability to customize Excel template

and
load
structural data into it.

Now we use our own vba program, that load data into template. But may

be
we
can simplify our program (or even throw away :) ) using new XML

capabilities
of Excel? We are using Excel 2000 features currently. May be even 97.



Thank You in advance

Boris


"Francesco Sblendorio" wrote in message
...
Yes, it's possible: the master-detail structure is flattened.
Example: this XML ...

<people
<department
<idFooBar001</id
<employee
<nameCharles</name
<age27</age
</employee
<employee
<nameJohn</name
<age21</age
</employee
</department
<department
<idHeyFoo002</id
<employee
<nameMichel</name
<age29</age
</employee
<employee
<nameHerbert</name
<age32</age
</employee
</department

is rendered like this:
ID NAME AGE
--------- -------- ---
FooBar001 Charles 27
FooBar001 John 21
HeyFoo002 Michael 29
HeyFoo002 Herbert 32











Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Data in Designated Cells in Excel 2003 Iris Excel Discussion (Misc queries) 1 August 26th 08 09:28 PM
Excel 2003 Data Import from SQL Lisa Excel Worksheet Functions 0 February 25th 08 09:37 AM
How do I import and merge Excel data into a master project file? Sentry16 Excel Discussion (Misc queries) 0 June 11th 07 03:39 PM
create pivot table with master/detail data from 2 worksheets BarbaraT Excel Worksheet Functions 0 April 17th 06 11:31 PM
issue with excel 2003 data import LNguyen Excel Discussion (Misc queries) 0 December 8th 05 07:42 PM


All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"