Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
QuestionMultiline Textbox scrollbar Pin
Nekkantidivya23-Aug-09 23:56
Nekkantidivya23-Aug-09 23:56 
QuestionProblem in reading a log file Pin
m.samar23-Aug-09 23:38
m.samar23-Aug-09 23:38 
AnswerRe: Problem in reading a log file Pin
Keith Barrow23-Aug-09 23:43
professionalKeith Barrow23-Aug-09 23:43 
AnswerRe: Problem in reading a log file Pin
Luc Pattyn24-Aug-09 0:51
sitebuilderLuc Pattyn24-Aug-09 0:51 
GeneralRe: Problem in reading a log file Pin
m.samar24-Aug-09 1:11
m.samar24-Aug-09 1:11 
QuestionDelegate calling from a child class Pin
FiniteRed23-Aug-09 23:21
FiniteRed23-Aug-09 23:21 
AnswerRe: Delegate calling from a child class Pin
DaveyM6923-Aug-09 23:30
professionalDaveyM6923-Aug-09 23:30 
QuestionHoe to include a schema reference in an xml file Pin
Jayaraman K23-Aug-09 23:21
Jayaraman K23-Aug-09 23:21 
hi,
   My requirement is pretty simple. I need to generate an xml file using C# which will refer some 3 or 4 schema files. Ill have to generate an xml file by including all the schema files and finally validating the generated xml file with all the schema files for any errors.

The problem im facing currenlty is like this:

I have an xsd file named common.xsd and another one called hardwarecommon.xsd.

Every time when i try to write a tag which is defined in common.xsd ill have to include a prefix "c:"

That is if i want to write a tag called "UUT". But this type is defined in common.xsd then ill write it as   "C:UUT". When i try writing like this im not able to get the prefix in the xml file. I don see any error but im getting as "UUT" alone. Pls someone help

This is the code im using to generate.

xmldoc = new XmlDocument();
                  xmlnode = xmldoc.CreateNode(XmlNodeType.XmlDeclaration, "", "");
                  xmldoc.AppendChild(xmlnode);
                  //adding the root element
                  xmlelem = xmldoc.CreateElement("", "TestDescription", "");
                  xmlelem.SetAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
                  xmlelem.SetAttribute("xmlns:c", "urn:IEEE-1671:2008.01:Common");
                  xmlelem.SetAttribute("xmlns:hc", "urn:IEEE-1671:2008.01:HardwareCommon");
                  xmlelem.SetAttribute("xmlns", "urn:P-IEEE-1671.1:2008.03:TestDescription");
                  xmlelem.SetAttribute("xmlns:tsf", "STDTSFLib");
                  xmlelem.SetAttribute("xmlns:std","STDBSC");
                  //xmlelem.SetAttribute("xmlns:atsf", "urn:P-IEEE-1671.1:2008.01:ATMLTSFLib");
                 
                  xmlelem.SetAttribute("xsi:schemaLocation", "urn:P-IEEE-1671.1:2008.03:TestDescription TestDescription.xsd STDBSC STDBSC.xsd STDTSFLib STDTSFLib.xsd urn:P-IEEE-1671.1:2008.01:ATMLTSFLib ATMLTSFLib.xsd");
                  xmlelem.SetAttribute("uuid", "{F9ED240A-ABA1-447e-BBBA-1A4EF0D434B1}");

                  XmlElement Element1 = xmldoc.CreateElement("UUTDescription");
                  XmlElement Element2 = xmldoc.CreateElement("Description");
                  XmlElement Element3 = xmldoc.CreateElement("c"+":"+"Identification");

Regards
Jayaraman
QuestionDataGridView: for customized pasting operation first row is moved to end of the grid instead of getting overwritten!!!! [modified] Pin
Cracked-Down23-Aug-09 23:02
Cracked-Down23-Aug-09 23:02 
QuestionConverting string data(which contains EBCDIC, Packed decimal and Endian data) to byte array Pin
deep723-Aug-09 22:55
deep723-Aug-09 22:55 
AnswerRe: Converting string data(which contains EBCDIC, Packed decimal and Endian data) to byte array Pin
Luc Pattyn24-Aug-09 1:43
sitebuilderLuc Pattyn24-Aug-09 1:43 
Question[Message Deleted] Pin
DIPAK@EMSYS23-Aug-09 22:51
DIPAK@EMSYS23-Aug-09 22:51 
AnswerRe: Remoting ....need help PinPopular
Mycroft Holmes23-Aug-09 23:41
professionalMycroft Holmes23-Aug-09 23:41 
GeneralRe: Remoting ....need help Pin
DIPAK@EMSYS24-Aug-09 0:15
DIPAK@EMSYS24-Aug-09 0:15 
GeneralRe: Remoting ....need help Pin
leckey24-Aug-09 4:05
leckey24-Aug-09 4:05 
AnswerRe: Remoting ....need help Pin
stancrm24-Aug-09 0:41
stancrm24-Aug-09 0:41 
QuestionR6025 Pure Virtual Functiona Call Error. Pin
Tej_dev23-Aug-09 22:51
Tej_dev23-Aug-09 22:51 
Questiona puzzle for timing method Pin
dragon_yue23-Aug-09 22:31
dragon_yue23-Aug-09 22:31 
AnswerRe: a puzzle for timing method Pin
stancrm23-Aug-09 22:39
stancrm23-Aug-09 22:39 
AnswerRe: a puzzle for timing method Pin
Bekjong23-Aug-09 23:20
Bekjong23-Aug-09 23:20 
GeneralRe: a puzzle for timing method Pin
dragon_yue29-Aug-09 2:40
dragon_yue29-Aug-09 2:40 
AnswerRe: a puzzle for timing method Pin
Luc Pattyn24-Aug-09 0:56
sitebuilderLuc Pattyn24-Aug-09 0:56 
GeneralRe: a puzzle for timing method Pin
dragon_yue29-Aug-09 2:41
dragon_yue29-Aug-09 2:41 
QuestionWeb Browser Control. Pin
egpuyos23-Aug-09 22:26
egpuyos23-Aug-09 22:26 
AnswerRe: Web Browser Control. Pin
stancrm23-Aug-09 22:36
stancrm23-Aug-09 22:36 

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.