[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: Take 2 - How do you replace comments from XML?


appsettings group
(thread merge)

>>I'd hazard a guess there isn't a clear
> > demarcation system that encourages good practice.
>
> You guess is incorrect.  Take a look at one and see for yourself.

My guess may well be incorrect, but I haven't yet seen any evidence.
After 10 minutes searching on TechNet I haven't been able to find a full
example, but returning to Domenica's example it appears to be of this form :

<appSettings>
	<!-- settings related to X -->
		<add key="a" value="1"/>
		<add key="b" value="2"/>
	<!-- settings related to Y -->
		<add key="c" value="3"/>
		<add key="d" value="4"/>
</appSettings>

which suggests that there is no built-in mechanism for grouping key,value
pairs within the appSettings block. Which is fine, as long as you don't want
to group pairs in these blocks. But the original question suggests this
might be desirable. This being the case, then something like this might be
appropriate :

<appSettings>
	<group name="X">
		<add key="a" value="1"/>
		<add key="b" value="2"/>
	</group>
	<group name="Y">
		<add key="c" value="3"/>
		<add key="d" value="4"/>
	</group>
</appSettings>

Which is about the same in human-readability terms, but a bit better for
machines.
So I'll go with Bill's request for a solution to the original poster's
problem.

Cheers,
Danny.


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.