Create RTF File with Template and XML

mikunos's Avatar, Join Date: Apr 2005
Newbie Member
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>

Last edited by mikunos; 29Apr2005 at 21:00..
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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's Avatar, Join Date: Apr 2005
Newbie Member
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's Avatar, Join Date: Jul 2004
Go4Expert Founder
If thats not much of useful then you have to write the XML parser on your own.
mikunos's Avatar, Join Date: Apr 2005
Newbie Member
thank u....Mr. Expert!
hassanmorcel's Avatar, Join Date: Nov 2006
Newbie Member
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>>

Last edited by shabbir; 6Nov2006 at 10:33.. Reason: Confine links to signatures only
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by hassanmorcel
check us out at

<<Confine links to signatures only>>
Confine links to signatures only
arslan220's Avatar, Join Date: Mar 2007
Go4Expert Member
thanks for that it was really helpful.