473,789 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Naming Conventions

Does the use of DTD, XML Schema and similar constructs adopt
the use of C# naming conventions? If so how do I make the distinction
of how to apply C# conventions with XML elements, attributes and so
on? Any referrals to resources that discuss or document XML Naming
Conventions?

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
Nov 16 '05 #1
3 4352
W3C.ORG publishes the XML standards. If you're talking about an XML
document, and naming tags (nodes) and attributes in particular, the naming
convention depends on what you're trying to do. For general purpose stuff,
you can make up your own. If you're trying to implement functionality
through an XML-based standard (like SOAP) there are specific guidelines and
structures (SOAP standards are also published by W3C on their website).

Thanks,
Michael C., MCDBA

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Does the use of DTD, XML Schema and similar constructs adopt
the use of C# naming conventions? If so how do I make the distinction
of how to apply C# conventions with XML elements, attributes and so
on? Any referrals to resources that discuss or document XML Naming
Conventions?

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

Nov 16 '05 #2
Hello Michael,

I am well aware of W3C and work with their standards. As a result
of that awareness I happened upon a linked comment that alleged the
W3C had defined naming conventions but the link only resolved to the
W3C 'home page' and after rooting around at the W3C site regardless
I was not able to locate any specific naming conventions in the context
I was expecting and hoping to find as those published by Microsoft's
..NET Framework General Reference Naming Guidelines [1].

To help clarify, I have read comments that compared the declaration
of XML elements to classes and class members and so on. I'd like to
learn more about how to think when defining and declaring XML
elements that may correlate to class definitions.

For example, I know XML is case sensitive but when I name XML
elements by which naming guideline am I motivated to declare an
element, as book, Book, bookStore or BookStore and how may
the declaration and its child elements correlate to any named counterpart
which may exist in my code when used to parse and process the XML?

The Visual Studio Coding Techniques [2] is helpful but does not
make the corrolary with XML elements.

Searching MSDN has not turned up anything specific in the context
I am attempting to convey.

In a nutshell, I want to learn if it is a correct perception that a well
designed XML schemata naming convention can be thought of as
equivalent to that of designing a class library and if so how to correlate
the constituent XML elements and child decedants by name to
class library counterparts?

Clear as mud :-)

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1]
http://msdn.microsoft.com/library/de...Guidelines.asp
[2]
http://msdn.microsoft.com/library/de...techniques.asp
"Michael C" <mi******@nospa m.org> wrote in message
news:UN******** **************@ news4.srv.hcvln y.cv.net...
W3C.ORG publishes the XML standards. If you're talking about an XML
document, and naming tags (nodes) and attributes in particular, the naming
convention depends on what you're trying to do. For general purpose stuff, you can make up your own. If you're trying to implement functionality
through an XML-based standard (like SOAP) there are specific guidelines and structures (SOAP standards are also published by W3C on their website).

Thanks,
Michael C., MCDBA

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Does the use of DTD, XML Schema and similar constructs adopt
the use of C# naming conventions? If so how do I make the distinction
of how to apply C# conventions with XML elements, attributes and so
on? Any referrals to resources that discuss or document XML Naming
Conventions?

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


Nov 16 '05 #3
Apart from the standard naming rules (don't start element names with "xml",
element names can't contain spaces, yadda yadda), the naming conventions are
pretty much set by the application you're using. If you're asking whether
you should prefix elements that are supposed to contain int values with
"int", that's pretty much your choice, unless the particular protocol or
application you're using dictates differently. The only addition I would
make is that personally I try to stay away from using custom element names
that are the same as commonly used tags in other protocols (i.e., using a
<title> tag). I've heard of people having issues with using HTML-type tag
names when they are using HTTP. In fact, that's one of the reasons the
soap: namespace was added to the SOAP standard... to avoid conflicts like
this.

If you want to know how .NET converts your object names to XML elements,
serialize some of them and look at the resultant XML docs.

Thanks,
Michael C., MCDBA

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:xi******** ***********@twi ster.rdc-kc.rr.com...
Hello Michael,

I am well aware of W3C and work with their standards. As a result
of that awareness I happened upon a linked comment that alleged the
W3C had defined naming conventions but the link only resolved to the
W3C 'home page' and after rooting around at the W3C site regardless
I was not able to locate any specific naming conventions in the context
I was expecting and hoping to find as those published by Microsoft's
.NET Framework General Reference Naming Guidelines [1].

To help clarify, I have read comments that compared the declaration
of XML elements to classes and class members and so on. I'd like to
learn more about how to think when defining and declaring XML
elements that may correlate to class definitions.

For example, I know XML is case sensitive but when I name XML
elements by which naming guideline am I motivated to declare an
element, as book, Book, bookStore or BookStore and how may
the declaration and its child elements correlate to any named counterpart
which may exist in my code when used to parse and process the XML?

The Visual Studio Coding Techniques [2] is helpful but does not
make the corrolary with XML elements.

Searching MSDN has not turned up anything specific in the context
I am attempting to convey.

In a nutshell, I want to learn if it is a correct perception that a well
designed XML schemata naming convention can be thought of as
equivalent to that of designing a class library and if so how to correlate
the constituent XML elements and child decedants by name to
class library counterparts?

Clear as mud :-)

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1]
http://msdn.microsoft.com/library/de...Guidelines.asp [2]
http://msdn.microsoft.com/library/de...techniques.asp

"Michael C" <mi******@nospa m.org> wrote in message
news:UN******** **************@ news4.srv.hcvln y.cv.net...
W3C.ORG publishes the XML standards. If you're talking about an XML
document, and naming tags (nodes) and attributes in particular, the naming convention depends on what you're trying to do. For general purpose

stuff,
you can make up your own. If you're trying to implement functionality
through an XML-based standard (like SOAP) there are specific guidelines

and
structures (SOAP standards are also published by W3C on their website).

Thanks,
Michael C., MCDBA

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Does the use of DTD, XML Schema and similar constructs adopt
the use of C# naming conventions? If so how do I make the distinction
of how to apply C# conventions with XML elements, attributes and so
on? Any referrals to resources that discuss or document XML Naming
Conventions?

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/



Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
320
by: Cristof Falk | last post by:
I wanted to get a feel. The documentation gives naming conventions for public/protected members. Is this truly widely adopted? And what about using the same conventions for private members and variables? My coding preference is to use this everywhere (banish Hungarian and follow the capitalization rules) but I need to sell it to team members.
7
2484
by: cmiddlebrook | last post by:
Hi there, I keep finding myself getting inconsistent with naming conventions for things like member variables, class names etc and I just want to find something that suits me and stick to it. I am wondering if there are any naming conventions around that are deemed suitable by the general C++ community. I have googled around and I can't find much - mostly long lists of hungarian-like prefixes which is not really what I'm after.
1
6549
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and so on? Any referrals to resources that discuss or document XML Naming Conventions? -- <%= Clinton Gallagher, "Twice the Results -- Half the Cost" Architectural & e-Business Consulting -- Software Development NET...
4
7149
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per convensions. The thing is that Ive never really get the full reference to check against. Ive seen a couple of articles, but there always seems to be a bit missing. I also always seem to run into conflicting convensions both in code samples themselves...
5
6174
by: rastaman | last post by:
Hi all, I know of the existence of Object Naming Conventions for Visual Basic 6. Now I'm reading some books about VB .NET, but the names used for the objects are button1, picturebox1, etc. I wonder if I can use the same naming conventions as for VB6 ? If so, what about the names for the new objects in .NET. Kind regards rastaman
4
5451
by: Patrick | last post by:
what are the general naming conventions for vb.net controls. esp txtUserName, lblPassword, btnSubmit What are the prefixes for the controls???? I've tried to search hi and low on the net, but in vain. I'd much appreciate it if someone could guide me with regards to this. All i need are standards for me to follow by my self. Cuz i'm finding it difficult to make my own darn standards.
9
3810
by: kevininstructor | last post by:
Greetings, I am in the process of creating naming conventions for VB.NET controls i.e. CheckBox -> chkShowThisOnStartup ListBoxt -> lstSomeList What I am looking for other developers input for Window.Form controls and what they are using for naming controls.
35
12199
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or recommended practise? Thanks.
1
801
by: Philipp Post | last post by:
Marcello, Not a big surprise as naming conventions have a lot to do with personal prefernces. There are a lot of threads in comp.databases and the other database groups. Just do a search for "naming conventions" in the groups. In my oppinion one of the good conventions is presented by Joe Celko in "SQL Programming Style". I would suggest reading it and pick up
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6765
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.