DOM and XSLT

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

DOM and XSLT

Post by Ambush Commander »

For a somewhat practical project that I'm doing, I've decided to really learn how to use DOM and XSLT. And, as of right now, I'd like to say: "How delightful!" Editing XML docs with DOM is great fun and very easy.

Of course, I've been doing very simple stuff: mapping objects to XML files. Any people have helpful tips or pointers for either of these technologies?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Best tip I can think of when using a DOM...

Whenever you have garbage XHTML or HTML, etc...you can use the DOM to load a non-valid document and traverse the tree outputting clean XHTML trans/strict, HTML, etc...

It's very handy in those situations :P

So many people whizz right by this fact and start using crazy regex to rewrite or fix invalid markup when the answer is so much easier when using a DOM.

Cheers :)
Post Reply