Simplify XML Tagging

Simplify XML Tagging

Simplify XML Tagging
Juan Caraballo

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.

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to keep you informed on recent service-oriented architecture (SOA) and SOA-related topics such as integration, governance, Web services, Cloud and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSOA.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSOA.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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.


This was first published in November 2000

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.