sri1025 Posted November 30, 2006 Share Posted November 30, 2006 Dear all,Is there any naming conventions defined somewhere for xml elements, attributes, etc. I searched on Google but I couldn't find it anywhere...Please let me know if there are any recommended naming conventions.Thank you,Srikanth Link to comment Share on other sites More sharing options...
boen_robot Posted November 30, 2006 Share Posted November 30, 2006 There isn't. In XML, you define the name of your nodes and what's best really depends on what you'll be using the XML for.A pure rule of thumb I can personally give you is to you is to use additional nodes to describe similar pieces of data, rather then making elements with similar names. For example, instead of<element1/><element2/>use something like<element id="1"/><element id="2"/>This will make it a lot easier to create proper and more straight XPath expressions.[edit]Thank you. That's how I wanted my avatar to look .[/edit] Link to comment Share on other sites More sharing options...
sri1025 Posted November 30, 2006 Author Share Posted November 30, 2006 Thank you man!Shall I tell you a thing, your image is a little scary Thanks again for the answer!Srikanth Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now