Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2004

Tip: Looking for answers? Try searching our database.

XML query in Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dat - 14 Oct 2004 10:55 GMT
hi all,

win xp, excel 2003.

i would like to ask if i can do any relational query on an xml data
source inside excel.

say, i have an xml document: employer.xml

<employerList>
 <employer>
   <Name>Guy1</Name>
   <Department>Marketing</Deparment>
 </employer>
 <employer>
   <Name>Guy2</Name>
   <Department>Finance</Deparment>
 </employer>
 <employer>
   <Name>Guy3</Name>
   <Department>Accounting</Deparment>
 </employer>
</employerList>

and i also have this xml document: departmentGroup.xml

<DepartmentGroup>
 <Deparment>Marketing</Deparment>
 <Deparment>Accounting</Deparment>
</DeparmentGroup>

Is it possible for me to make queries on these two xml data sources
(something similar to SQL or XQuery) to generate the following?

select <name> from employer.xml
 where <deparment> in employer.xml = <department> in
departmentGroup.xml

so that i can get:
Guy1
Guy3

??? it is certain that i must work with XML format. or, is there any
similar method to do query on XML??

Thanks so much in advance,
isa
Jamie Collins - 15 Oct 2004 09:57 GMT
> i would like to ask if i can do any relational query on an xml data
> source inside excel.

You could open them in an Excel workbook and query the workbook.

> <Department>Marketing</Deparment>

You tags don't match, I think 'Deparment' is a typo (you are typing in the xml <g>?)

Jamie.

--
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.