Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:830407
More Search Options
RSS Available
Matching Posts
Re: validate xml file on the fly
string sFileName = "C:\\Documents and Settings\\kavita.ACTLDOMAIN\\Desktop\\test\\whyValidate.xml"; XmlTextReader oTr = new XmlTextReader(sFileName); XmlValidatingReader oVr = new XmlValidatingReader(oTr); oVr.ValidationType = ValidationType.Schema; oVr.ValidationEventHandler += new ValidationEventHandler(this.ValidationEvent); while (oVr.Read()) { if (oVr.NodeType == XmlNodeType.Text) { lstXml.Items.Add(oVr.Value); } } Then write this delegate private void ValidationEvent(object s, ValidationEventArgs
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/26/2009
Re: create xml file
XmlDocumnet xDoc = new XmlDocument; xDoc.LoadXml("<root/>"); xDoc.Save("Server.MapPath('MyNewXml.xml')"); It will create a new file if not existing...and if existing then it will over write it...
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/26/2009
Re: Xml validation on form without xsd.
I think if you are not willing to use schmea(which is the best way to validate XML) you have to manually write code to do so.. for example if a certain node does not contain numeric value then using the any of the xml dom api you have to traverse uptill that node and validate it ..may be using the IsNumber method and so on.. which would be quit tedious.. And if the xml is not aways the same then I doubt for how many iteration you would write such validations...then it is not possible...
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/26/2009
Re: how to call a static method from xslt in vs2008?
check my blog post on the same topic at http://kavstech.blogspot.com/2009/08/how-to-use-external-function-in-xslt.html This code will work in 2005 and 2008 too ...
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Re: Read XML in reverse order
[quote] I would like to only display the ten most recent nodes. [/quote] You can use an XSLT something like this, which only takes out the latest 10 records... <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:variable name="vvr_count" select="count(updates/update/user)"/> <xsl:variable name="vvr_latest10" select="number
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Re: Get Started with NHibernate
Still if you want to know all about it, you can refer following link http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Re: Drill Down possibility with an xml file(TreeView)
SHow us your xml.
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Re: XML String
You can do it using the LoadXml Construct string fs = "<foo></foo>" doc.LoadXml(fs);
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Re: RSS Feed
Check out this link for a simple example http://www.aspsnippets.com/post/2009/03/22/Display-RSS-Feeds-using-ASPNet.aspx
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Re: RSS feed through proxy server fails
Have you tried setting the proxy property? //Create a WebRequest WebRequest rssReq = WebRequest.Create("http://www.asp.net/news/rss.ashx"); //Create a Proxy WebProxy px = new WebProxy("http://www.asp.net/news/rss.ashx", true); //Assign the proxy to the WebRequest rssReq.Proxy = px; //Set the timeout in Seconds for the WebRequest rssReq.Timeout = 5000;
Posted to
XML and XmlDataSource Control
(Forum)
by
kavita_khandhadia
on 11/25/2009
Page 1 of 153 (1527 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
ASP.NET:
T4MVC now has a real home and a dedicated forum!
TechNet Edge:
Windows Server 2008 R2 : New Power Management Features
ASP.NET:
Web Deployment Painkillers: VS 2010 & MS Deploy
WindowsClient:
Application Accessibility Testing
WindowsClient:
Prism & WCF RIA Services
Channel 9:
Sharepoint 2010 and Claims-Based Identity
WindowsClient:
IRhetoric Ported To BlogEngine.NET
WindowsClient:
PDC Recap and More
Channel 9:
Reactive Extensions API in depth: Primitives
WindowsClient:
New WPF Features: MultiTouch
WindowsClient:
codeplex.com/testapi v 0.4 available
Channel 9:
The Visual Studio Documentary - Alan Cooper, the Father of Visual Basic
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online