Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 February 2nd, 2005, 07:42 AM
Authorized User
Join Date: Dec 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Extract data and create xml for input

Extract data and create xml for input



I am given with a xml schema file.( with field name and datatype),
then along with a (*.unl file) with data's for the above schema file.
but without field names. each data is seperated by "|" character.

ie, like consider xml schema having field names as
<xs:element name="section" type="xs:int" minOccurs="0" />
<xs:element name="door" type="xs:int" minOccurs="0" />
<xs:element name="position" type="xs:string" minOccurs="0" />

like this

and wheras (*.unl file) has values as follows


...etc like so on.

Now what I have to do is that create a xml file along with schema and data's .
And later on use this xml file as input and have to create a report.

How to load these dta's intoa xml file for that particular schema.

how to program this.
pls help me to do this.


Old February 2nd, 2005, 03:01 PM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nanku71

Hi dhol,
Did you try "writexml" method in .net??
You can try doing that with data source as the text file and xml schema at the schema provided.
I hope it works..
I will post back after some tests on my side.
take care

Our greatest glory consists not in never falling, but in rising every time we fall.
Author: Confucius

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple input xml / get data from other xml file elayaraja.s XSLT 3 July 25th, 2008 06:59 AM
Extract the XML file from CDATA haixia XSLT 2 August 3rd, 2006 02:01 PM
comma delimited input.how to extract value&compare kvmreddy XSLT 2 April 13th, 2006 10:13 AM
Extract data from the XML result of a web service s.hendy ASP.NET 1.0 and 1.1 Basics 0 March 16th, 2006 12:27 PM
extract xml using asp daddycool2k Classic ASP XML 0 November 17th, 2003 12:13 PM

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