Click here to Skip to main content
15,902,112 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionCode Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair25-May-06 6:59
Josh Blair25-May-06 6:59 
AnswerRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
led mike25-May-06 7:07
led mike25-May-06 7:07 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair25-May-06 7:19
Josh Blair25-May-06 7:19 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
led mike25-May-06 19:54
led mike25-May-06 19:54 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair26-May-06 6:51
Josh Blair26-May-06 6:51 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
led mike26-May-06 7:04
led mike26-May-06 7:04 
GeneralRe: Code Generator that writes code to generate and XML doc structure? [modified] Pin
Josh Blair26-May-06 7:42
Josh Blair26-May-06 7:42 
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 
Here is something that might help: different portions of the xml document(s) will come from different sources of data. Again taking an invoice as an example (but there are other types of docments as well):

I have to send invoices to a third party. This third party defined the xml structures that I have to populate and did not provide schemas or DTDs. A large portion of the data that I need to send to this thord party will originate from a legacy ERP system that does offer an ODBC driver. I can obtain the data from this system, no problem...already got that part licked.

The invoice XML document has a "header section" which contains sub-sections like "ship-to section", "buyer section" and so on nested within the "header section".
It also contain a "line item section" where there can be one to many line items in this section.

Some of the data that populates the "header section" will come from the invoice header in the ERP system (via ODBC). Other parts will come from a configuration file, while other data will come from database tables not originating from the ERP system (maybe a SQL Server).

Most of the data that will populate the "line item section" will come from the ERP system from the lines on the invoice.

Serialization might be the proper approach. I think the code generator that I wrote may be misusing the .NET framework because it is essentially reproducing the features of serialization. BUT...when using serialization, bdo you have full control over how things get serialized? I can't have all the "junk" that comes with serialization out of the box. When I say "junk", I mean the xml namespaces and extra crap not allowed by this third party. As in: xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance".

Also, I need to have full control over the order of how elements are ordered and nested. Is this possible with .NET serialization? I'd rather not have to transform the serialized business object before I send it off because I'm not really versed at XSLT.



Josh Blair
Evergreen, CO
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 
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 

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.