Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

Create a .net class from Infopath XSD data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pascal Brunot - 18 Aug 2005 21:53 GMT
Hi,

Is there a way using VS.net 2003 to create a class from an XSD in a few
clicks ? I'd like to create business objects from form templates
quickly since I have lots of form templates to manage.

These classes will be used to computats stats and complex
interdependent formulas that cannot be done at form level.

I'd like to avoid using a DOMDocument in my business layer to handle
the forms, since it is not strongly typed and requires me to use XPath
to access every form data...

More generally, what is the best practice to move the infopath data to
the business layer of my app?

Thanks,
Pascal.
Paul Robinson - 19 Aug 2005 16:13 GMT
On the narrow subject of class creation, open the project in VS.NET which
needs to consume the new dataset, open the Infopath XSD in the VS.NET
designer and choose 'Generate Dataset' from the Schema menu.  This creates a
strongly typed datset.
Pascal Brunot - 19 Aug 2005 16:42 GMT
Thanks Paul.

I found that a tool called XSDObjectGenerator on MSDN is able to
generate a class from a XSD. I have to look further to know how well
infopath's schemas as translated.

It sounds to me that a class is best suited to handle complex business
logic than a dataset, but I'll check your solution too.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.