Title: XSL transform + schema validate

Hello,

I'm looking to accomplish the following in a C++ program:

XML -> XSLT -> DOM -> Schema validate -> map to data classes

In other words,

(1) run an XML document through an XSL transformation, resulting in a DOM tree
(2) re-parse the DOM tree, applying an XML Schema validation in the process
(3) then do something with the result...

I want to parse/validate/map an XML document to a set of data classes. However, the input XML document's structure does not correspond to my program's model, so I want to convert to an intermediary format first. I would also like to validate the intermediary format rigorously, because this is more likely to remain the same throughout my app's lifecycle than the input format.

Has anybody achieved this with Xerces-C 2.1.0 and the latest Xalan-C? I expect that I can figure it out myself, eventually, but if somebody's already figured out what magical combination of parser options is necessary, I would greatly appreciate a hint or two...

Thanks,
- Matt

----
matt kangas                                        core development
hotjobs.com / a Yahoo! service / 917.438.2649 / [EMAIL PROTECTED]

Reply via email to