Click here to Skip to main content
15,918,050 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXML validation. Pin
Septimus Hedgehog18-Aug-13 22:02
Septimus Hedgehog18-Aug-13 22:02 
Guys, give me your thoughts on how you validate your xml at runtime. I recently fell into a drawn-out debug session where I couldn't see the problem with my xml file. I opened it in c#, read it, and checked for various attributes and what have you, adopting plan B that if I don't find an attribute I'll assume a default value.

The problem was I had an attribute called Recursion but I inadvertently spelt it Recursive, not the same thing! Big Grin | :-D

I know I could validate the xml with an xsd file which sounds great in principal but is that the preferred way to validate your xml or do you do it the "safer" (word used very loosely) way by keeping all the literal names in your code and then issue warnings if things don't pass muster?

The xsd file itself could for any number of reasons be subject to an incorrect edit. I'd like to know which way you do things to ensure that when it comes to the usage, your xml is as clean to use as you can make it. Ideas?
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

AnswerRe: XML validation. Pin
joost.versteegen5-Dec-13 22:00
joost.versteegen5-Dec-13 22:00 
QuestionSlow group - noob Xml question - converting binary structure to Xml and back? Pin
charlieg24-Jul-13 3:10
charlieg24-Jul-13 3:10 
AnswerRe: Slow group - noob Xml question - converting binary structure to Xml and back? Pin
Richard MacCutchan24-Jul-13 5:06
mveRichard MacCutchan24-Jul-13 5:06 
GeneralRe: Slow group - noob Xml question - converting binary structure to Xml and back? Pin
charlieg24-Jul-13 5:09
charlieg24-Jul-13 5:09 
QuestionEmpty node when data specified in xsd Pin
DaveyM6918-Jul-13 23:57
professionalDaveyM6918-Jul-13 23:57 
AnswerRe: Empty node when data specified in xsd Pin
Richard MacCutchan19-Jul-13 0:01
mveRichard MacCutchan19-Jul-13 0:01 
GeneralRe: Empty node when data specified in xsd Pin
DaveyM6919-Jul-13 0:06
professionalDaveyM6919-Jul-13 0:06 
GeneralRe: Empty node when data specified in xsd Pin
Richard MacCutchan19-Jul-13 0:14
mveRichard MacCutchan19-Jul-13 0:14 
GeneralRe: Empty node when data specified in xsd Pin
DaveyM6919-Jul-13 0:27
professionalDaveyM6919-Jul-13 0:27 
GeneralRe: Empty node when data specified in xsd Pin
Nicholas Marty19-Jul-13 0:49
professionalNicholas Marty19-Jul-13 0:49 
GeneralRe: Empty node when data specified in xsd Pin
DaveyM6919-Jul-13 3:53
professionalDaveyM6919-Jul-13 3:53 
GeneralRe: Empty node when data specified in xsd Pin
Richard MacCutchan19-Jul-13 2:21
mveRichard MacCutchan19-Jul-13 2:21 
GeneralRe: Empty node when data specified in xsd Pin
DaveyM6919-Jul-13 3:51
professionalDaveyM6919-Jul-13 3:51 
AnswerRe: Empty node when data specified in xsd Pin
jinzai17-Jul-14 13:01
jinzai17-Jul-14 13:01 
QuestionMerging 2 consecutive List items in XSLT Pin
David Kroj14-Jul-13 21:17
David Kroj14-Jul-13 21:17 
QuestionHow to do curd operations on XML Which Shown Below Pin
Rambabu Sapa10-Jul-13 1:40
Rambabu Sapa10-Jul-13 1:40 
QuestionRe: How to do curd operations on XML Which Shown Below Pin
Richard MacCutchan10-Jul-13 4:25
mveRichard MacCutchan10-Jul-13 4:25 
AnswerRe: How to do curd operations on XML Which Shown Below Pin
Rambabu Sapa11-Jul-13 3:18
Rambabu Sapa11-Jul-13 3:18 
AnswerRe: How to do curd operations on XML Which Shown Below Pin
jinzai17-Jul-14 13:07
jinzai17-Jul-14 13:07 
Questiondisplaying xml file on wpf Pin
adinarayana095808-Jul-13 18:37
adinarayana095808-Jul-13 18:37 
AnswerRe: displaying xml file on wpf Pin
Richard MacCutchan8-Jul-13 21:28
mveRichard MacCutchan8-Jul-13 21:28 
QuestionChecking for valid xml file. Pin
Mark F.18-Jun-13 7:53
Mark F.18-Jun-13 7:53 
AnswerRe: Checking for valid xml file. Pin
Bernhard Hiller19-Jun-13 20:52
Bernhard Hiller19-Jun-13 20:52 
GeneralRe: Checking for valid xml file. Pin
Mark F.20-Jun-13 13:52
Mark F.20-Jun-13 13:52 

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.