1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create RTF File with Template and XML

Discussion in 'Web Development' started by mikunos, Apr 29, 2005.

  1. mikunos

    mikunos New Member

    Joined:
    Apr 29, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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: Apr 29, 2005
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    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
     
  3. mikunos

    mikunos New Member

    Joined:
    Apr 29, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
    --------------------------------------
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    If thats not much of useful then you have to write the XML parser on your own.
     
  5. mikunos

    mikunos New Member

    Joined:
    Apr 29, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    thank u....Mr. Expert!
     
  6. hassanmorcel

    hassanmorcel New Member

    Joined:
    Nov 4, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    check us out at

    <<Confine links to signatures only>>
     
    Last edited by a moderator: Nov 6, 2006
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Confine links to signatures only
     
  8. arslan220

    arslan220 New Member

    Joined:
    Mar 17, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    thanks for that it was really helpful.
     

Share This Page