Re: [OT] XML Primer

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57714
interpreted = N
texte = It depends on the purpose of the XML file. For example, we have a db that has all CD's that are currently instock. We want to create an XML file for our distributors so they always have current list. We direct our distributors to go the music.tpl file for the latest version of the CD list. XML/XSLT tutorial in the WebDNALab shows how to make the music.db file from an XML file. Here is the example to create the XML doc from the same music.db. [!]The Music.tpl file[/!] [Search db=music.db&neTITLEdatarq=[blank]] [WriteFile file=music.xml&secure=F] [FOUNDITEMS] [TITLE] [ARTIST] [/founditems] [/WriteFile] [/Search] [!]Let's view our new XML file[/!] [redirect url=music.xml] The new XML file is always updated with the latest database changes whenever the music.tpl template is rendered. The Result - - Bridge of Spies T`Pau - The dock of the bay Otis Redding - Black angel Savage Rose - The very best of Cat Stevens - Unchain my heart Joe Cocker - Romanza Andrea Bocelli - Midt om natten Kim Larsen - Eros Eros Ramazzotti - Red The Communards - For the good times Kenny Rogers - Soulsville Jorn Hoel - Big Willie style Will Smith - Maggie May Rod Stewart - Stop Sam Brown - Still got the blues Gary More - Private Dancer Tina Turner - When a man loves a woman Percy Sledge - Pavarotti Gala Concert Luciano Pavarotti - Hide your heart Bonnie Tylor - Picture book Simply Red - 1999 Grammy Nominees Many - One night only Bee Gees - Empire Burlesque Bob Dylan - Greatest Hits Dolly Parton - Sylvias Mother Dr.Hook - Tupelo Honey Van Morrison Hope this helps, Sal D'Anna -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Alan White Sent: Friday, May 07, 2004 2:22 AM To: WebDNA Talk Subject: Re: [OT] XML Primer I found a really good tutorial on http://www.htmlite.com The only thing I am still struggling with is applying what I have learned, I know how to create an xml file and I can also create the xlst etc but where is get stuck is populating my xml file. I don't know if this is supposed to be done on the fly by pulling info from a db and writing it to a file. Anyone care to shed some light? HTH Alan on 5/6/04 8:03 PM, Dan Strong at webdna@stronggraphicdesign.com wrote: > Howdy all, > > I need to be up to speed with XML by early next week... any good (preferrably > free) online > resources you guys would recommend I check out to get me started and then any > books for the long > haul? > > TIA, > > -Dan > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ __________ NOD32 1.752 (20040506) Information __________ This message was checked by NOD32 Antivirus System. http://www.nod32.com ------------------------------------------------------------- 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: [OT] XML Primer ( "Dan Strong" 2004)
  2. Re: [OT] XML Primer ( "Sal" 2004)
  3. Re: [OT] XML Primer ( Alan White 2004)
  4. Re: [OT] XML Primer ( "Dan Strong" 2004)
  5. Re: [OT] XML Primer ( "Sal" 2004)
  6. Re: [OT] XML Primer ( Dylan Wood 2004)
  7. Re: [OT] XML Primer ( "Sal" 2004)
  8. [OT] XML Primer ( "Dan Strong" 2004)
It depends on the purpose of the XML file. For example, we have a db that has all CD's that are currently instock. We want to create an XML file for our distributors so they always have current list. We direct our distributors to go the music.tpl file for the latest version of the CD list. XML/XSLT tutorial in the WebDNALab shows how to make the music.db file from an XML file. Here is the example to create the XML doc from the same music.db. [!]The Music.tpl file[/!] [Search db=music.db&neTITLEdatarq=[blank]] [WriteFile file=music.xml&secure=F] [founditems] [TITLE] [ARTIST] [/founditems] [/WriteFile] [/Search] [!]Let's view our new XML file[/!] [redirect url=music.xml] The new XML file is always updated with the latest database changes whenever the music.tpl template is rendered. The Result - - Bridge of Spies T`Pau - The dock of the bay Otis Redding - Black angel Savage Rose - The very best of Cat Stevens - Unchain my heart Joe Cocker - Romanza Andrea Bocelli - Midt om natten Kim Larsen - Eros Eros Ramazzotti - Red The Communards - For the good times Kenny Rogers - Soulsville Jorn Hoel - Big Willie style Will Smith - Maggie May Rod Stewart - Stop Sam Brown - Still got the blues Gary More - Private Dancer Tina Turner - When a man loves a woman Percy Sledge - Pavarotti Gala Concert Luciano Pavarotti - Hide your heart Bonnie Tylor - Picture book Simply Red - 1999 Grammy Nominees Many - One night only Bee Gees - Empire Burlesque Bob Dylan - Greatest Hits Dolly Parton - Sylvias Mother Dr.Hook - Tupelo Honey Van Morrison Hope this helps, Sal D'Anna -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Alan White Sent: Friday, May 07, 2004 2:22 AM To: WebDNA Talk Subject: Re: [OT] XML Primer I found a really good tutorial on http://www.htmlite.com The only thing I am still struggling with is applying what I have learned, I know how to create an xml file and I can also create the xlst etc but where is get stuck is populating my xml file. I don't know if this is supposed to be done on the fly by pulling info from a db and writing it to a file. Anyone care to shed some light? HTH Alan on 5/6/04 8:03 PM, Dan Strong at webdna@stronggraphicdesign.com wrote: > Howdy all, > > I need to be up to speed with XML by early next week... any good (preferrably > free) online > resources you guys would recommend I check out to get me started and then any > books for the long > haul? > > TIA, > > -Dan > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ __________ NOD32 1.752 (20040506) Information __________ This message was checked by NOD32 Antivirus System. http://www.nod32.com ------------------------------------------------------------- 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/ "Sal"

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:

Release Date? (2002) [delete] problem (1997) Emailer and error 447 (2002) email [title] (1997) Pithy questions on webcommerce & siteedit (1997) Speed Optimization - Mac (1997) RE: extended ASCII with middle command (1999) Typhoon Rev. and PCS store problems (1999) SiteEdit Pro Update Announcement (1997) [Sum] function? (1997) Search in 2 or more catalogs (1997) all records returned. (1997) Ampersand (1997) Empty Shopping Carts? (1998) Showif, Hideif reverse logic ? (1997) How To question on setting up downloads (1997) PIXO (1997) WebCat2b13 Command Reference Doc error (1997) Post size Limit? (1998) Limiting user access to .tmpl files (1997)