Flat-file to XML converter

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 67425
interpreted = N
texte = Just working out an idea and thought I'd share. Hopefully some of you will find it useful. -Dan [!]#-- Flat-file (tab-delim) to XML converter ::: -Dan Strong --[/!] [!]-- *** Be sure to set your "path_to_db" var *** --[/!] [text show=f]path_to_db=listings.db[/text] [listfields db=[path_to_db]][text show=f]known_field=[fieldname][/text][/listfields] [!]--END set vars --[/!] [writefile file=[middle startafter=&endbefore=.][path_to_db][/middle].xml&secure=F] [!] [/!][search db=[path_to_db]&ne[known_field]data=show_all][!] [/!][founditems]  [listfields db=[path_to_db]][!] [/!]<[interpret][fieldname][/interpret]>[interpret][[fieldname]][/interpret] [/listfields][!] [/!] [/founditems] [/search][!] [/!] [/writefile] [!]#-- END Flat-file (tab-delim) to XML... --[/!] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Flat-file to XML converter ( "Dan Strong" 2006)
  2. Re: Flat-file to XML converter ( "Dan Strong" 2006)
  3. Re: Flat-file to XML converter ( Pat McCormick 2006)
  4. Flat-file to XML converter ( "Dan Strong" 2006)
Just working out an idea and thought I'd share. Hopefully some of you will find it useful. -Dan [!]#-- Flat-file (tab-delim) to XML converter ::: -Dan Strong --[/!] [!]-- *** Be sure to set your "path_to_db" var *** --[/!] [text show=f]path_to_db=listings.db[/text] [listfields db=[path_to_db]][text show=f]known_field=[fieldname][/text][/listfields] [!]--END set vars --[/!] [writefile file=[middle startafter=&endbefore=.][path_to_db][/middle].xml&secure=F] [!] [/!][search db=[path_to_db]&ne[known_field]data=show_all][!] [/!][founditems]  [listfields db=[path_to_db]][!] [/!]<[interpret][fieldname][/interpret]>[interpret][[fieldname]][/interpret][interpret][fieldname][/interpret]> [/listfields][!] [/!] [/founditems] [/search][!] [/!] [/writefile] [!]#-- END Flat-file (tab-delim) to XML... --[/!] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Calculating days, hours, minutes ago (2004) [WebDNA] [BULK] WebDNA 7 Won't Install/Work [internal server error] (2010) apostrophe in search item (1997) NTbeta18 corrupted? (1997) WC2/Mac -- Forms not submitting correctly with Mac browsers (1997) [OT] http list (2003) Request for page test (2003) WebCommerce: Folder organization ? (1997) WebCat2 - many [carts] on one template page? (1997) SSL and reg web* (1997) UPPERCASE (1997) Re:no [search] with NT (1997) Limiting user access to .tmpl files (1997) Merging databases (1997) [WebDNA] WebDNA 7 (2011) free shipping (2000) frustrated with search (2001) Likelihood of a duplicate (2005) .. more on sliding discounts... (1997) Re:WebCatalog/WebMerchant III (1998)