Hi, I have checked this line it works fine. Only thing is that this string contrain some escape sequence so in order to use this u have to use @sign before that. For Ex: string varFormat = ConfigurationSettings.AppSettings["FileExtentionIsolation"].ToString(); var = var.ToString(@varFormat); Thanks & Regards Krishan Kant
"Falls, Travis D (HTSC, CASD)" <[EMAIL PROTECTED]> wrote: I have this line in my app.config file and I believe the ConfigurationSettings.AppSettings["FileExtentionIsolation"]; doesn't like one of the characters. Unfortunately it is a regular expression so I need to maintain its format. Anyone have an idea how I can do this? <add key="FileExtentionIsolation" value="^.+\.([^?.]+)($|\?)" /> Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 | [EMAIL PROTECTED] -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Dean Fiala Sent: Wednesday, August 31, 2005 2:17 PM To: [email protected] Subject: Re: [AspNetAnyQuestionIsOk] Need to get plain text value of child node of XML.XMLNode Yes, if there are nodes within a node, .InnerText will return... The InnerText, which will include the XML mark up used to define those nodes. There is a way however to just get the text not inside of any child nodes. The text is actually in a node called #text. The xpath expression to get it is text(), so to get the text portion of your ChildNodes(1) would be... Dim strValue as String = oNode.ChildNodes (1).SelectSingleNode("text()").Value Of course, this will return nothing if there is no text, so you'll want to put a little logic around it. On 8/31/05, Eliezer Broder <[EMAIL PROTECTED]> wrote: > > I need to get a text value contained in a child node of this oNode: > Dim oNode As Xml.XmlNode > > The way I was attempting was: > Dim strValue as String = oNode.ChildNodes(1).InnerText > > That works *right now* - but I was told that if there would be child nodes > within ChildNodes(1) - I'd end up getting XML markup mixed in that value > strValue - and I need just the plain text value. > > oNode.ChildNodes(1).Value = Nothing. > > *What's the best way to get the plain text value of this child node?* > > Thanks, > Eliezer > > > [Non-text portions of this message have been removed] > > > > > > Yahoo! Groups Links > > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com [Non-text portions of this message have been removed] Yahoo! Groups Links ************************************************************************* PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************* --------------------------------- YAHOO! GROUPS LINKS Visit your group "AspNetAnyQuestionIsOk" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- -------------------------------------------------------------------- Krishan Kant Chamoli Office: +91-172-2653886 AutherGen Technology (P) Ltd., Fax: +91-172-5018485 24/3, Industrial Area, Phase - 2, Mobile: 9888263726 Chandigarh. INDIA. Pin - 160002. Email: [EMAIL PROTECTED] -------------------------------------------------------------------- Send instant messages to your online friends http://uk.messenger.yahoo.com [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
