We help IT Professionals succeed at work.
Get Started

XML and Foxpro

fmoore0001 asked
Last Modified: 2012-05-11
I have a client with a need for XML output  from Foxpro.  I have played with it a bit in the past- enough to generate something useful, but he needs a specific header in his XML file and I have not figured out how add it:

In the past I have made simple XML files from a Cursor that generate data in this fashion:
<?xml version="1.0"?>

Foxpro will do that just with the CURSORTOXML() command.  But, this time I need to add some sort of a header defination:

<?xml version="1.0"?>
   -<Mcr reportingDate="2011-01-01" periodType="MCRYTD" year="2011" type="S">

And I am lost how to do this.  Any ideas, or useful references to a how to guide on this?

Watch Question
This problem has been solved!
Unlock 3 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE