I am trying to parse a RDL in SQL Server 2005 to extract the data source and the stored procedure called by the report. Can you please tell me how do I go about parsing out the values?
View Complete Post
In Visual Studio 2010 ASP.NET 4.0
I want to write a procedure to validate a xml file with a xsd. I found some examples on the web but the one i chose does not work as attended. The example uses XmlReader with a XmlReaderSettings and a ValidationEventHandler.
Here is the code
Protected Sub VerifyDes(ByVal filename As String)
Dim xslDes As XmlReaderSettings = New XmlReaderSettings()
xslDes.ValidationType = ValidationType.Schema
xslDes.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings
AddHandler xslDes.ValidationEventHandler, AddressOf xslDesValidationEventHandler
Dim des As XmlReader = XmlReader.Create(filename, xslDes)
Protected Sub xslDesValidationEventHandler(ByVal sender As Object, ByVal e As ValidationEventArgs)
'some code here
I tested this procedure with a xml file which was well formed but contained some elements which were not conform to the xsd.
No event or error occured. It said the file was valid.
Then i tested with a badly formed file. A XmlException was raised but nothing happened with the ValidationEventHandler.
It seems lik
Learn about enhanced TimeSpan formatting and parsing features coming in the .NET Framework 4, and some helpful tips for working with TimeSpan values.
MSDN Magazine February 2010
Hi Everyone, I have the following string
strFullString = "<img src="http://image.weather.com/web/common/wxicons/31/32.gif?12122006" alt="" />Sunny, and 104 ° F. For more details?"
What I would like to do is parse the full string into two strings with the following values
strImgSource = "http://image.weather.com/web/common/wxicons/31/32.gif"
strWeather = "Sunny, and 104 ° F."
Ive been pulling my hair out with this one, any help would be greatly appreciated. Thanks!