Click here to Skip to main content
15,887,895 members
Home / Discussions / C#
   

C#

 
AnswerRe: Form.Hide() doesn't work Pin
Luc Pattyn5-Jul-09 1:07
sitebuilderLuc Pattyn5-Jul-09 1:07 
QuestionDrawing ellipse in C# . Pin
shameerpv4-Jul-09 22:16
shameerpv4-Jul-09 22:16 
AnswerRe: Drawing ellipse in C# . Pin
molesworth4-Jul-09 22:35
molesworth4-Jul-09 22:35 
AnswerRe: Drawing ellipse in C# . Pin
Christian Graus5-Jul-09 0:21
protectorChristian Graus5-Jul-09 0:21 
QuestionNo of Users connected in MS-Access Database ? Pin
suleh4-Jul-09 20:50
suleh4-Jul-09 20:50 
Questionquestion about setup Pin
sumanpandey4-Jul-09 20:47
sumanpandey4-Jul-09 20:47 
AnswerRe: question about setup Pin
Manas Bhardwaj4-Jul-09 21:06
professionalManas Bhardwaj4-Jul-09 21:06 
Questionvalidating xml and ignore some elements with out changing schema Pin
shmely4-Jul-09 20:12
shmely4-Jul-09 20:12 
Hi ,

I am validating an xml that express an an invoice document.
this documnt always have header and lines.but somtimes (not always) have serial numbers.
When I am validating the xml against the shcema I want the validator to ignore if the serial number element does not exist.
I can't change and I don't want to change the schema Since i am getting it from a third party software.
What can I do to ignore it?
see, my code and a part of the schema below:

I am using this code to validate xml file to xsd file:
private void ValidateSchema(string filePath)
{
XmlReaderSettings settings;
XmlDocument doc;
XmlReader reader = null;
try
{ settings = new XmlReaderSettings();
settings.Schemas.Add(null, m_sSchemaPath);
settings.ValidationEventHandler += new ValidationEventHandler(settings_ValidationEventHandler);
settings.ValidationType = ValidationType.Schema;
doc = new XmlDocument();
reader = XmlReader.Create(filePath, settings);
doc.Load(reader);
doc.Validate(settings_ValidationEventHandler); }
finally
{
reader.Close();

}
}
this is part of the the XSD(a few complex type elements):


<element name="Documents">
<element name="Documents_LINES">

<element name="SERIAL">


thanks in advanced,
A Y
QuestionHow to store & retrieve Paragraph Data using XmlSerializer in XML Pin
Andy Rama4-Jul-09 20:09
Andy Rama4-Jul-09 20:09 
AnswerRe: How to store & retrieve Paragraph Data using XmlSerializer in XML Pin
Christian Graus5-Jul-09 0:22
protectorChristian Graus5-Jul-09 0:22 
GeneralRe: How to store & retrieve Paragraph Data using XmlSerializer in XML Pin
Andy Rama10-Jul-09 9:46
Andy Rama10-Jul-09 9:46 
AnswerRe: How to store & retrieve Paragraph Data using XmlSerializer in XML Pin
Andy Rama19-Jul-09 6:07
Andy Rama19-Jul-09 6:07 
Questionsearch in datagridview [modified] Pin
ducanhthanhhoa4-Jul-09 18:02
ducanhthanhhoa4-Jul-09 18:02 
AnswerRe: search in datagridview Pin
Manas Bhardwaj4-Jul-09 19:06
professionalManas Bhardwaj4-Jul-09 19:06 
GeneralRe: search in datagridview [modified] Pin
ducanhthanhhoa5-Jul-09 4:51
ducanhthanhhoa5-Jul-09 4:51 
QuestionNeed help to write multiple columns of data from listview row to a single text file record Pin
Robert Bone4-Jul-09 9:58
Robert Bone4-Jul-09 9:58 
AnswerRe: Need help to write multiple columns of data from listview row to a single text file record Pin
Manas Bhardwaj4-Jul-09 10:10
professionalManas Bhardwaj4-Jul-09 10:10 
GeneralRe: Need help to write multiple columns of data from listview row to a single text file record Pin
Robert Bone4-Jul-09 10:27
Robert Bone4-Jul-09 10:27 
GeneralRe: Need help to write multiple columns of data from listview row to a single text file record Pin
DaveyM694-Jul-09 11:54
professionalDaveyM694-Jul-09 11:54 
GeneralRe: Need help to write multiple columns of data from listview row to a single text file record Pin
Luc Pattyn4-Jul-09 12:09
sitebuilderLuc Pattyn4-Jul-09 12:09 
GeneralRe: Need help to write multiple columns of data from listview row to a single text file record Pin
DaveyM694-Jul-09 21:57
professionalDaveyM694-Jul-09 21:57 
GeneralRe: Need help to write multiple columns of data from listview row to a single text file record Pin
Robert Bone4-Jul-09 12:10
Robert Bone4-Jul-09 12:10 
QuestionWrite a save repport on txt file Pin
abbd4-Jul-09 8:31
abbd4-Jul-09 8:31 
AnswerRe: Write a save repport on txt file Pin
Colin Angus Mackay4-Jul-09 8:39
Colin Angus Mackay4-Jul-09 8:39 
AnswerRe: Write a save repport on txt file Pin
Anthony Mushrow4-Jul-09 8:44
professionalAnthony Mushrow4-Jul-09 8:44 

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.