Re: [OT] XML Primer
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57715
interpreted = N
texte = Sal, have you considered teaching? Seriously.-DanOn Fri, 7 May 2004 18:49:22 -0700 "Sal"
wrote:>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/-------------------------------------------------------------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:
Sal, have you considered teaching? Seriously.-DanOn Fri, 7 May 2004 18:49:22 -0700 "Sal" wrote:>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/-------------------------------------------------------------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:
New index for docs (1997)
Request for page test (2003)
Hiding HTML and page breaks (1997)
Demo math questions (2000)
Price Not Appearing SOLUTION (2000)
[WebDNA] Capitalize surprise (2012)
WebCat2_Mac RETURNs in .db (1997)
Superfilous Characters (1998)
Is there a max number of fields? (1998)
Been meaning to ask... (1997)
California Tax Rates (1998)
a * question (2003)
[WebDNA] WebDNA Euro Hosting (2014)
IE-caching (1998)
Document Contains No Data! (1997)
FYI: virus alert (1996)
FTP upload TCP Connect (2003)
HTML encoding in URLs (1997)
Options for http uploading of files (1999)
Still having problems with Authen (1997)