Click here to Skip to main content
16,011,374 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair26-May-06 8:21
Josh Blair26-May-06 8:21 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
led mike26-May-06 8:59
led mike26-May-06 8:59 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
led mike26-May-06 8:32
led mike26-May-06 8:32 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Josh Blair26-May-06 10:46
Josh Blair26-May-06 10:46 
AnswerRe: Code Generator that writes code to generate and XML doc structure? Pin
Dustin Metzgar26-May-06 7:42
Dustin Metzgar26-May-06 7:42 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Josh Blair26-May-06 8:28
Josh Blair26-May-06 8:28 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Dustin Metzgar26-May-06 8:34
Dustin Metzgar26-May-06 8:34 
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Josh Blair26-May-06 10:08
Josh Blair26-May-06 10:08 
Dustin, thanks for the link. That is a pretty cool app. I tried it with my XML structures and it fails. I tweaked the app and my XML a bit an got it to run. That is a great sample. I'll see if the output is going to be useful and let you know.

I also tried running XSD.exe (mentioned in one of the comments to the article) over my XML samples. Here is the output:

C:\Projects\Customer_XMLCodeGenerator_CS>xsd CustomerDespatchAdvice.xml
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Error: There was an error processing 'CustomerDespatchAdvice.xml'.
- The same table (Country) cannot be the child table in two nested relations.

(In this xml sample, there are multiple sections with the same element (Country), and the tool treats those as "tables" and 2 tables can't have the same name...)

I have run into this type of error before with other XML-based projects. I think what is basically going on is that the XSD tool determines that the XML data is not valid according to the ADO.NET schema inference rules. See the following article for more on this issue. Quite a limitation if you ask me. Not a big deal if you have the luxury of defining the XML data from the beginning but not cool if you are forced to use someone elses structure...

I had the same problem with cXML (http://www.cXML.org in another similar project)

http://support.microsoft.com/default.aspx?scid=kb;EN-US;325696

Anyway, thanks for the tip!

Josh Blair
Evergreen, CO
GeneralRe: Code Generator that writes code to generate and XML doc structure? Pin
Dustin Metzgar26-May-06 10:44
Dustin Metzgar26-May-06 10:44 
Questionxml content problem?????? [modified] Pin
Small Rat24-May-06 17:02
Small Rat24-May-06 17:02 
QuestionXSD Schema modeling ( please help) Pin
erikkl200023-May-06 18:48
erikkl200023-May-06 18:48 
AnswerRe: XSD Schema modeling ( please help) Pin
Stuart Dootson23-May-06 21:57
professionalStuart Dootson23-May-06 21:57 
GeneralRe: XSD Schema modeling ( please help) Pin
erikkl200024-May-06 2:44
erikkl200024-May-06 2:44 
AnswerRe: XSD Schema modeling ( please help) Pin
Blake Miller31-May-06 12:18
Blake Miller31-May-06 12:18 
QuestionI want to get some example of ASP using XML Pin
Jesal Rana23-May-06 0:34
Jesal Rana23-May-06 0:34 
AnswerRe: I want to get some example of ASP using XML Pin
Paul Conrad20-Jul-06 17:00
professionalPaul Conrad20-Jul-06 17:00 
Questionhow to get value from XML Pin
sharma sanjeev22-May-06 0:58
sharma sanjeev22-May-06 0:58 
AnswerRe: how to get value from XML Pin
led mike22-May-06 12:14
led mike22-May-06 12:14 
Questionabout xml efficiency Pin
HeartFriend22-May-06 0:25
HeartFriend22-May-06 0:25 
QuestionOPEN XML Pin
NICE TO MEET19-May-06 3:14
NICE TO MEET19-May-06 3:14 
QuestionHow to use insert , update , del operations on XML file used as database Pin
ArjunMK18-May-06 5:09
ArjunMK18-May-06 5:09 
AnswerRe: How to use insert , update , del operations on XML file used as database Pin
George L. Jackson18-May-06 16:00
George L. Jackson18-May-06 16:00 
QuestionXSL Transformation--ignore previous post Pin
subbakka18-May-06 3:10
subbakka18-May-06 3:10 
QuestionXSL Transformation Pin
subbakka18-May-06 3:10
subbakka18-May-06 3:10 
AnswerRe: XSL Transformation Pin
Colin Angus Mackay18-May-06 4:34
Colin Angus Mackay18-May-06 4:34 

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.