Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   Create RTF File with Template and XML (http://www.go4expert.com/forums/create-rtf-file-template-xml-t284/)

mikunos 29Apr2005 20:46

Create RTF File with Template and XML
 
Hi Expert,

can you help me? I must create a simple RTF file with the follow data. The Rtf must be create from a simple template written in Rtf format and It contains images and other tag to replace with the following data.

This must be an example of result

-
<UserExport>
-
<!--
L`uso dei dati protetto dal D.lgs 196/03. Ogni abuso severamente punito dalla legge internazionale sulla Privacy!
-->
-
<Dati_Personali>
<IdDati_Personali label="">User Data</IdDati_Personali>
<Nome label="First Name">User Data</Nome>
<Cognome label="Surname">User Data</Cognome>
<Data_Nascita label="Date of birth">User Data</Data_Nascita>
<Sesso label="Sex">User Data</Sesso>
<Luogo_Nascita label="Birthplace">User Data</Luogo_Nascita>
<Nazione_Nascita label="Country">User Data</Nazione_Nascita>
<Indirizzo_Residenza label="Address (1)">User Data</Indirizzo_Residenza>
<Cap_Residenza label="ZIP (1)">User Data</Cap_Residenza>
<Citta_Residenza label="City (1)">User Data</Citta_Residenza>
<Nazione_Residenza label="Country">User Data</Nazione_Residenza>
<Indirizzo_Domicilio label="Address (2)">User Data</Indirizzo_Domicilio>
<Cap_Domicilio label="ZIP (2)">User Data</Cap_Domicilio>
<Citta_Domicilio label="City (2)">User Data</Citta_Domicilio>
<Nazione_Domicilio label="Country">User Data</Nazione_Domicilio>
<Nazionalita label="Nationality">User Data</Nazionalita>
<Telefono label="Telephone">User Data</Telefono>
<Fax label="Fax">User Data</Fax>
<Cellulare label="Mobile">User Data</Cellulare>
<Madrelingua label="Mother Tongue">User Data</Madrelingua>
<Email label="Email">User Data</Email>
<Foto label="Photo">User Data</Foto>
<Codice_Accesso label="Public Access Code">User Data</Codice_Accesso>
<Password label="Password">User Data</Password>
<Pubblico label="Public">User Data</Pubblico>
<Dati_Personali label="Privacy Policy">User Data</Dati_Personali>
<Privacy_Estero label="Allow use of your personal in others country">User Data</Privacy_Estero>
</Dati_Personali>
<S_Esperienza_Lavorativa>
<Esperienza_Lavorativa>
<IdEsperienza_Lavorativa label="">User Data</IdEsperienza_Lavorativa>
<Data_Inizio label="Date (from - to)">User Data</Data_Inizio>
<Data_Fine label="Date End">User Data</Data_Fine>
<Datore label="Name and address of employer">User Data</Datore>
<Tipologia_Azienda_Settore label="Type of business or sector">User Data</Tipologia_Azienda_Settore>
<Tipologia_Impiego label="Occupation or position held">User Data</Tipologia_Impiego>
<Mansioni_Responsabilita label="Main activities and responsibilities">User Data</Mansioni_Responsabilita>
</Esperienza_Lavorativa>

<Esperienza_Lavorativa>
<IdEsperienza_Lavorativa label="">User Data</IdEsperienza_Lavorativa>
<Data_Inizio label="Date (from - to)">User Data</Data_Inizio>
<Data_Fine label="Date End">User Data</Data_Fine>
<Datore label="Name and address of employer">User Data</Datore>
<Tipologia_Azienda_Settore label="Type of business or sector">User Data</Tipologia_Azienda_Settore>
<Tipologia_Impiego label="Occupation or position held">User Data</Tipologia_Impiego>
<Mansioni_Responsabilita label="Main activities and responsibilities">User Data</Mansioni_Responsabilita>
</Esperienza_Lavorativa>

<Esperienza_Lavorativa>
<IdEsperienza_Lavorativa label="">User Data</IdEsperienza_Lavorativa>
<Data_Inizio label="Date (from - to)">User Data</Data_Inizio>
<Data_Fine label="Date End">User Data</Data_Fine>
<Datore label="Name and address of employer">User Data</Datore>
<Tipologia_Azienda_Settore label="Type of business or sector">User Data</Tipologia_Azienda_Settore>
<Tipologia_Impiego label="Occupation or position held">User Data</Tipologia_Impiego>
<Mansioni_Responsabilita label="Main activities and responsibilities">User Data</Mansioni_Responsabilita>
</Esperienza_Lavorativa>
</S_Esperienza_Lavorativa>

<S_Istruzione_Formazione>
<Istruzione_Formazione>
<IdIstruzione_Formazione label="">User Data</IdIstruzione_Formazione>
<Data_Inizio label="Date (from - to)">User Data</Data_Inizio>
<Data_Fine label="Date End">User Data</Data_Fine>
<Nome_Tipo label="Name and type of organisation providing education and training">User Data</Nome_Tipo>
<Materie_Abilita label="Principal subjects/occupational skills covered">User Data</Materie_Abilita>
<Qualifica label="Title of qualification awarded">User Data</Qualifica>
<Classificazione label="Level in national classification (if appropriate)">User Data</Classificazione>
</Istruzione_Formazione>
</S_Istruzione_Formazione>

<S_Lingue_Parlate_Scritte>
<Lingue_Parlate_Scritte>
<IdLingue_Parlate_Scritte label="">User Data</IdLingue_Parlate_Scritte>
<Lingua label="Language">User Data</Lingua>
<Lettura label="Reading skills">User Data</Lettura>
<Scrittura label="Writing skills">User Data</Scrittura>
<Espressione_Orale label="Verbal skills">User Data</Espressione_Orale>
</Lingue_Parlate_Scritte>
<Lingue_Parlate_Scritte>
<IdLingue_Parlate_Scritte label="">User Data</IdLingue_Parlate_Scritte>
<Lingua label="Language">User Data</Lingua>
<Lettura label="Reading skills">User Data</Lettura>
<Scrittura label="Writing skills">User Data</Scrittura>
<Espressione_Orale label="Verbal skills">User Data</Espressione_Orale>
</Lingue_Parlate_Scritte>
</S_Lingue_Parlate_Scritte>

<Competenze>
<IdCompetenze label="">User Data</IdCompetenze>
<Personali label="PERSONAL SKILLS AND COMPETENCES">User Data</Personali>
<Relazionali label="SOCIAL SKILLS AND COMPETENCES">User Data</Relazionali>
<Organizzative label="ORGANISATIONAL SKILLS AND COMPETENCES">User Data</Organizzative>
<Tecniche label="TECHNICAL SKILLS AND COMPETENCES">User Data</Tecniche>
<Artistiche label="ARTISTIC SKILLS AND COMPETENCES">User Data</Artistiche>
<Altro label="OTHER SKILLS AND COMPETENCES">User Data</Altro>
<Patente label="DRIVING LICENCE(S)">User Data</Patente>
<Infos label="ADDITIONAL INFORMATION">User Data</Infos>
</Competenze>
</UserExport>

shabbir 30Apr2005 20:15

Re: Create RTF File with Template and XML
 
Hello

First of all I would like to welcome you to the forums and I hope you enjoy your stay here. Also you can use Introduce Yourself forums to intoduce yourself.

Now coming to your query. If you are looking for something in PH as you have posted in PHP forums then I dont think the link will help but you can have a look at it.
http://www.xmlmind.com/foconverter/xml_to_rtf.html

Also there is source code available for rtf to xml here is the link
http://sourceforge.net/projects/rtf2xml/

Thanks
Shabbir Bhimani

mikunos 3May2005 18:57

Re: Create RTF File with Template and XML
 
Project: rtf2xml: convert MS RTF to XML and not the inverse!

Also there is source code available for rtf to xml here is the link
http://sourceforge.net/projects/rtf2xml/

*************************

Consists of three stand-alone applications: fo2rtf/fo2wml (command-line executables) and XSL Utility (graphical user interface) and it's no good!

Now coming to your query. If you are looking for something in PH as you have posted in PHP forums then I dont think the link will help but you can have a look at it.
http://www.xmlmind.com/foconverter/xml_to_rtf.html
--------------------------------------

shabbir 4May2005 10:07

Re: Create RTF File with Template and XML
 
If thats not much of useful then you have to write the XML parser on your own.

mikunos 5May2005 00:45

Re: Create RTF File with Template and XML
 
thank u....Mr. Expert!

hassanmorcel 4Nov2006 06:11

Re: Create RTF File with Template and XML
 
Quote:

Originally Posted by shabbir
Hello

First of all I would like to welcome you to the forums and I hope you enjoy your stay here. Also you can use Introduce Yourself forums to intoduce yourself.

Now coming to your query. If you are looking for something in PH as you have posted in PHP forums then I dont think the link will help but you can have a look at it.
http://www.xmlmind.com/foconverter/xml_to_rtf.html

Also there is source code available for rtf to xml here is the link
http://sourceforge.net/projects/rtf2xml/

Thanks
Shabbir Bhimani

check us out at

<<Confine links to signatures only>>

shabbir 6Nov2006 10:33

Re: Create RTF File with Template and XML
 
Quote:

Originally Posted by hassanmorcel
check us out at

<<Confine links to signatures only>>

Confine links to signatures only

arslan220 15Jul2009 16:41

Re: Create RTF File with Template and XML
 
thanks for that it was really helpful.


All times are GMT +5.5. The time now is 06:59.