Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
|
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2007, 02:59 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to elxany
Default Loading Infopath xml form to SQL server?

Hi everyone,

I am new in infopath 2003 solution development. I would appreciate any replies to the following problem that I am experiencing so far.

I want to load xml data (that I get after I fill in self-designed infopath template) to the tables in MS SQL Server 2005 as a relational data.

In fact, there are some solutions where you may load entire xml to sql server 2005 as an xml data type. However, it is required from me to load this infopath xml data as relational data to tables.

Till now, I have tried xml bulkload (SQLXML 4.0) - http://msdn2.microsoft.com/en-us/library/ms171806.aspx

However, problem occurs when I want to use construct an xsd schema that supports above bulkload operation on the following infopath xml data:

<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution solutionVersion="1.0.0.58" productVersion="11.0.6565" PIVersion="1.0.0.0" href="file:///C:\RIAIS\Sablon\S1_GeneralInfo.xsn" name="urn:schemas-microsoft-com:office:infopath:S1-GeneralInfo:-myXSD-2006-12-13T05-53-51" ?><?mso-application progid="InfoPath.Document"?><my:RegionInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-12-13T05:53:51" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-us">
<my:CreationDate>1961-01-18</my:CreationDate>
<my:Area>111111</my:Area>
<my:AreaDivison>
<my:CityNum>12</my:CityNum>
<my:DistrictNum>37</my:DistrictNum>
<my:VillageNum>24</my:VillageNum>
<my:StateDelegateNum>2</my:StateDelegateNum>
<my:MunicipalNum>8</my:MunicipalNum>
</my:AreaDivison>
<my:regions>
<my:name>7</my:name>
</my:regions>
<my:FormID>Forma S1</my:FormID>
<my:FormDate>2007-01-04</my:FormDate>
<my:FilledBy>Vusa Akimo</my:FilledBy>
</my:RegionInfo>


I may suppose that probelm occurs due to namespace “my:” that standad xsd schema does not accept... :(

Please, suggest a solution or example how to handle this xml namespace “my:” in Inoptah 2003 forms...

Thank you for your time..

With Regards





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server 2005 XML: FOR XML PATH -> cdata? stoves SQL Server 2005 1 July 8th, 2008 02:40 AM
Loading Excel into SQL Server using ASP.NET chiefg ADO.NET 6 July 22nd, 2004 11:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.