Click here to Skip to main content
16,005,037 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I remove the repeated items from an Array? [modified] Pin
eggsovereasy8-Jun-07 7:37
eggsovereasy8-Jun-07 7:37 
GeneralRe: How can I remove the repeated items from an Array? Pin
Guffa8-Jun-07 10:22
Guffa8-Jun-07 10:22 
GeneralRe: How can I remove the repeated items from an Array? Pin
eggsovereasy8-Jun-07 11:02
eggsovereasy8-Jun-07 11:02 
AnswerRe: How can I remove the repeated items from an Array? Pin
Judah Gabriel Himango8-Jun-07 7:44
sponsorJudah Gabriel Himango8-Jun-07 7:44 
GeneralRe: How can I remove the repeated items from an Array? Pin
eggsovereasy8-Jun-07 9:10
eggsovereasy8-Jun-07 9:10 
GeneralRe: How can I remove the repeated items from an Array? Pin
S. Senthil Kumar9-Jun-07 5:49
S. Senthil Kumar9-Jun-07 5:49 
GeneralRe: How can I remove the repeated items from an Array? Pin
Judah Gabriel Himango10-Jun-07 8:06
sponsorJudah Gabriel Himango10-Jun-07 8:06 
QuestionCheck XML Document for Well Formness Pin
Ronakkumar Patel8-Jun-07 6:02
Ronakkumar Patel8-Jun-07 6:02 
Hi,

I am getting weird error while trying to check whether this xml document is well form or not.
Error I am getting is only for the xml file who has external dtd defined. If xml file requires a schema or inline dtd... it works perfectly fine. I tested this xml file with Stylus Studio Xml Editor and it works perfectly fine and validates the MessageExternalDTD.xml file. In my case the error it says is "Could not find file 'C:\Documents and Settings\ronak.patel\Local Settings\Temp\message.dtd'. Even though dtd file is at the same location as the xml file is.

One thing i understand from this error during validating or checking wellformness xml file requires dtd or xsd files to be present at "C:\Documents and Settings\ronak.patel\Local Settings\Temp\" directory. If they are there and not in the same directory where xml file is still it would work, but not vice versa.

MessageExternalDTD.xml

<message>
<to>Dave
<from>Susan
<subject>Reminder
<text>Don't forget to buy milk on the way home!


message.dtd







Here is my Code...

XmlDocument xmlDocument = xmlData.xmlDocument;
//xmlDocument is already given to me..
MemoryStream mstream = new MemoryStream();
StreamWriter writer = new StreamWriter(mstream);
xmlDocument.Save(mstream);
mstream.Seek(0, SeekOrigin.Begin);

try
{
while (reader.Read())
{
}

}
catch (XmlException ex)
{
MessageBox("XML Error : " + ex.Message);
m_success = false;
}
catch (Exception exe)
{
MessageBox("Error : " + exe.Message);
m_success = false;
}
finally
{
if (!m_success)
{
MessageBox.Show("Not Well Form");
}
else
{
MessageBox.Show("Well Form");
}
m_success = true;
reader.close();
}
QuestionWebClient with Credentials.. Pin
Ronakkumar Patel8-Jun-07 6:00
Ronakkumar Patel8-Jun-07 6:00 
QuestionHow to block cookies during HTTP Get or Post operation Pin
Ronakkumar Patel8-Jun-07 5:59
Ronakkumar Patel8-Jun-07 5:59 
QuestionGet list of exported functions from Unmanaged DLL Pin
Ronakkumar Patel8-Jun-07 5:57
Ronakkumar Patel8-Jun-07 5:57 
QuestionAlternative to Socket? Pin
Hamed Musavi8-Jun-07 5:50
Hamed Musavi8-Jun-07 5:50 
AnswerRe: Alternative to Socket? Pin
Not Active8-Jun-07 5:55
mentorNot Active8-Jun-07 5:55 
GeneralRe: Alternative to Socket? Pin
Hamed Musavi8-Jun-07 6:19
Hamed Musavi8-Jun-07 6:19 
AnswerRe: Alternative to Socket? Pin
Judah Gabriel Himango8-Jun-07 6:00
sponsorJudah Gabriel Himango8-Jun-07 6:00 
GeneralRe: Alternative to Socket? Pin
Hamed Musavi8-Jun-07 6:16
Hamed Musavi8-Jun-07 6:16 
QuestionIs WebProxy class only support HTTP proxy type? Pin
Ronakkumar Patel8-Jun-07 5:50
Ronakkumar Patel8-Jun-07 5:50 
QuestionImage's path Pin
Nine_8-Jun-07 4:34
Nine_8-Jun-07 4:34 
AnswerRe: Image's path Pin
Not Active8-Jun-07 4:53
mentorNot Active8-Jun-07 4:53 
GeneralRe: Image's path Pin
Nine_8-Jun-07 15:56
Nine_8-Jun-07 15:56 
GeneralRe: Image's path Pin
Not Active9-Jun-07 2:23
mentorNot Active9-Jun-07 2:23 
QuestionPrompt user to close outlook during install/uninstall Pin
Aerukull8-Jun-07 4:33
Aerukull8-Jun-07 4:33 
AnswerRe: Prompt user to close outlook during install/uninstall Pin
AikinX9-Jun-07 0:30
AikinX9-Jun-07 0:30 
QuestionIList and BindingSource Problem [modified] Pin
Wjousts8-Jun-07 3:42
Wjousts8-Jun-07 3:42 
AnswerRe: IList and BindingSource Problem Pin
Wjousts8-Jun-07 15:25
Wjousts8-Jun-07 15:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.