Re: SaveToFile XML Standard
- From: "Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx>
- Date: 16 Dec 2006 04:47:17 -0800
Hubert Ritif wrote:
When using TADOQuery.SaveToFile( fileName, pfXML), an XML File
containing schema and data of the dataset is generated. In fact, as
far as I know and on Windows XP, this is calling ADO Microsoft
(Microsoft _RecordSet.SaveToXML) and generates a Microsoft
proprietary XML format (W3C Standard?)
it uses its own XML schema, yes.
Does anyone know which standard it is exactly and where I can find
documentation about it?
not really, but it shouldn't be too difficult to extract using your XML
file as examples. That's the power of XML...
Could it be that generating this file from VISTA produces something
else than from XP?
AFAIK not.
I want to know this because I was using TADOQuery to access a
PostgreSQL DB. Now, I want to use a third party component which do
not have yet the SaveToFile( fileName, pfXML) functionality. They are
willing to implement it but the question is which standard. On one
hand, for compatibility issues, I would like to have the same format
that I have used until now, but on the other hand I am wondering
whether there is another choice better suited for the future.
you don't need them to use exactly the same format. They could use XLST
to transform the ADO XML Schema into whatever they need, and XPath to
query the data contained in the XML document.
In the W3C web you can find more information on XML Schema, XSLT and
XPath.
In short:
- XML (eXtensible Markup Language) provides you with the capability of
creating any kind of structured file and make it readable to anyone and
any application you want.
- XML Schema allows you to create a standardized way of structuring a
XML document, thus allowing anyone to create the same type of document
without errors.
- XSLT is a "style ***" language standard, which makes it easier to
transform XML documents.
- XPath aka XML Path Language is "a W3C standard used by XSLT and other
XML programming vocabularies to query and filter data stored in XML
documents" [quote from MSDN]
Good luck,
--
Best regards :)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
.
- References:
- SaveToFile XML Standard
- From: Hubert Rétif
- SaveToFile XML Standard
- Prev by Date: Re: Application crashes after ExecProc
- Next by Date: Re: Application crashes after ExecProc
- Previous by thread: SaveToFile XML Standard
- Next by thread: Re: SaveToFile XML Standard
- Index(es):