Solved

Creating XML

Posted on 2001-06-21
6
358 Views
Last Modified: 2013-11-19
Hi all,

New to XML and we have to produce an XML file at the end of the payroll year to conform to the government's schema that they have provided (an XSD document). In beginner's terms, is there a way that I can get my application to look at the schema, look at my data and somehow (magically) produce an XML document that fits the schema?

Do the new XML features in Delphi 6 do this? I was at the Delphi Developer's Conference in Reading (England) this week and it looked like it might.

Thanks,
J.
0
Comment
Question by:jsweby
6 Comments
 
LVL 2

Accepted Solution

by:
DidierD earned 100 total points
ID: 6213979
Hi,

You can find some info about Delphi and XML at http://delphi.about.com/compute/delphi/library/weekly/aa072500a.htm?terms=xml

Didier
0
 
LVL 4

Author Comment

by:jsweby
ID: 6214071
That was a good link, thank you; however, it didn't have anything on creating the XML document based upon a schema. I don't even know if this is possible. But thanks, Didier.

J.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6214304
From http://www.borland.com/delphi/del6/featurematrix/bizsnap.html


DELPHI 6 BIZSNAP

New! XML Schema transform tools and utilities provide translation between XML Data, DTD's and XDR schema and datasets automatically - making XML Schema analysis, creation, and XML data transformations a snap!


Btw, only the Enterprise edition has these component.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Author Comment

by:jsweby
ID: 6214380
Epsylon,

Thanks for that, I'm already on the path to getting Delphi 6 because of the DataSnap and BizSnap elements, thanks for the feedback. Didier, I'm going to give you the points fairly soon because I read one of the articles on the link you gave me and I'm now leaps ahead of where I was.

Just to keep this open a while longer though, anyone tried to do what I'm trying? i.e. create an XML doc from a database based upon a schema?

J.
0
 
LVL 2

Expert Comment

by:egono
ID: 6214869
when I started with xml I used these both resources a lot

http://msdn.microsoft.com/xml/default.asp
http://www.netcrucible.com/xslt/msxml-faq.htm

they are both MSXML related
i downloaded the MSXML 3.0 SDK also, it includes a
quite good documentation

http://msdn.microsoft.com/code/sample.asp?url=/msdn-files/027/000/542/msdncompositedoc.xml

the samples are in C++ or VB but it's quite readable

another good resources are these both newsgroups
microsoft.public.xml
microsoft.public.xsl

good luck
0
 
LVL 4

Author Comment

by:jsweby
ID: 6223679
Thanks for the link, it helped a bit although I'm still looking for someone to explain if I can go from schema to new XML document - is this what the XML Mapper is D6 does?

J.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 185
use of cookies and regulations 1 77
Element alignment and word wrapping 9 62
Firemonkey webbrowser scrollbars ? 1 29
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

861 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now