How to import data from an XML file into Crystal Reports

Posted on 2008-10-13
Last Modified: 2012-05-05
I have a basic XML file that I need to import into Crystal Reports.  I have version 9, 10 and 11 so it doesn't matter which version I use to do it.  I have a pretty good knowledge of Crystal, I have just never attempted to import an XML file.  I tried to do it in version 11 and it asked for a schema or .xsd file and I don't know how to create a schema.  Anyone?
Question by:skielark
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 101

Expert Comment

ID: 22707574
What do you mean by a "basic XML" file?

How are you trying to connect to the file?
I use XML files and have never needed a schema or xsd file.  That may be because the XML files we use have the schema included or it may be the method we use.


Author Comment

ID: 22707582
I mean it is just an XML file.  I don't think the schema is included.  I don't know.  Can you tell me the method you use to pull it into Crystal Reports.  Thanks
LVL 101

Expert Comment

ID: 22707647
Open Crystal
Create a new report with the wizard
Select ADO.NET (XML)
Navigate to the XML file


Author Comment

ID: 22707685
Yay!  That worked.  Now I have another question.  The XML files all have the same name with a date extension.  So, for instance XMLfile090808, XMLfile091008.  Is there a way I can do a wildcard of some sort where it will pull in any of the files or do you have to connect to a specific file?  Thanks
LVL 101

Accepted Solution

mlmcc earned 500 total points
ID: 22707792
You have to connect to a specific file.  If the files all have the same format then you can use the
DATABASE --> SET DATASOURCE LOCATION optionto change to a different XML file


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hopefully the following mnemonic and, ultimately, the acronym it represents is common place to all those reading: Please Excuse My Dear Aunt Sally (PEMDAS). Briefly, though, PEMDAS is used to signify the order of operations (http://en.…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question