Simplify XML Tagging
Reader Juan Caraballo sends us this tip that makes it easier to get everything right when you are entering a block of statements between begin and end tags.
This is very basic but saves valuable time. When creating XML element tags, type the first tag, copy and paste the ending tag. Do NOT forget to enter the forward slash. Then proceed to populate the tags with data. With time, this will become automatic and you will not get any typos for the ending tags. This works great on nested ending template rules.
Ex. <xsl:for-each> Copy and paste <xsl:for-each> <xsl:for-each> Enter / <xsl:for-each> </xsl:for-each> Enter data <xsl:for-each> <xsl:value-of select="thisTip"/> </xsl:for-each>
This is very helpful when creating xsl & xml documents. By using this tip you will not miss important ending template rules.
Thanks, Juan. To show our appreciation, we'll be sending you a SearchXML Resources shirt.
Juan Caraballo is an Application Testing Engineer for Scanvec Amiable, in Philadelphia. He says he enjoys creating websites that transform databases into presentable text with the help of XML. "I truly believe XML to be the only language that may be implemented to communicate with other programming languages effectively. It will be the future of all communication."
If you have a tip for other XML developers, why not drop it in to us. Simply go here, input your tip and click the submit button. If we use your tip, you'll get a token of our appreciation, too.