473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

XML Schema generation

I need some help from the forum for designing the xml schema. The
scenario is client service architecture.
I have some configuration files(our own proprietary format, can be
considered as some form of text file) at server.
user can populate the required fields.
Since we are moving from text file format to xml file to store the
date. we have to convert all these configuration files to
XML files manually. or we can retain the same configuration file but
we should create mechanism so that these
files are converted to XML. Is there any way create to create a
Generalized schema so that it could accomodate
all the scenarios described below.Now i need to create a generalized
schema to accomodate multiple configuration files.
I am attaching some configuration files for the reference.
********************* File 1******************

configr-format-name: xyz
configr-format-type: IEEE
configr-description: "abc"

#Field Name Size Type Match
Value
#---------- ---- ----
-----------

"Destination Address" 6
STRING
"Source Address" 6
STRING
"Ether Type" 2 STRING INTVAL
A-N
"Version + IHL" 1
-
"Type of Service" 1
-
"Total Length" 2
-
"Identification" 2
-
"Flags + Fragment Off" 2
-
"Time to Live" 1
-
"Protocol" 1
STRING
"Header Checksum" 2
-
"Source Address" 4
STRING
"Destination Address" 4 STRINGSTRING
*********************** File 2 ********************

fconfigr-format-name: xyz1
configr-format-type: IEEE
configr-description: "abcd"

#Field Name Size Type Match
Value
#---------- ---- ----
-----------

"Destination Address" 6 STRING
"Source Address" 6 STRING
"Ether Type" 2 STRING INTVAL A-N
"Version + IHL" 1 -
"Type of Service" 1 -
"Total Length" 2 -
"Identification" 2 -
"Flags + Fragment Off" 2 -
"Time to Live" 1 -
"Protocol" 1 STRING INTVAL A-N
"Header Checksum" 2 -
"Source Address" 4 STRING
"Destination Address" 4 STRING
"Source Port" 2 STRING
"Destination Port" 2 STRING INTVAL A-N
"Sequence Number" 4 -
"Acknowledgement Number" 4 -
"Offset & Reserved" 1 -
"Window Control Bits" 1 -
"Window" 2 -
"Checksum" 2 -
"Urgent Pointer" 2 -
"Options" 1 -
*********************** File 3 ********************
fconfigr-format-name: xyz1
configr-format-type: IEEE
configr-description: "abcd"

#Field Name Size Type Match
Value
#---------- ---- ---- -----------
"Source SAP" 1 -
"Destination SAP" 1 -
"Control" 1 -

*********************** File 4 ********************
fconfigr-format-name: xyz1
configr-format-type: IEEE
configr-description: "abcd"
Aug 1 '08 #1
0 1135

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob Exley | last post by:
I think this is a sensible question but am happy to be pointed out the error of my ways. I am specifying a new product for which I would like to have an XML Schema interface (not sure whether...
2
by: BillD | last post by:
I'm trying to derive a schema from a base schema. I want to redefine a "group" from the base schema in my derived schema in order to add more options to the "choice" aggregate (see schema1.xsd...
0
by: Steve Jorgensen | last post by:
In a schema I've been working on recently, a convention I evolved was to use a consistent naming pattern such that, for instance, a Resident could appear in a ResidentSet, and could be referred to...
3
by: Davide Bedin | last post by:
I have a "library" schema with the simple and complex types I commonly use in other schemas and then several other schemas, maybe created by other developers, that import/include the library...
2
by: Bart Torbert | last post by:
I am using XMLSPY to create various XML Schemas. In text documents we have the XPATH mapped to various of our databases. Here is the problem----- How do I verify that I don't have any typos in...
4
by: Iain A. Mcleod | last post by:
Hi I'm stuck with the following schema validation problem in VS.NET 2003: I have two types of xml document and related schema: project and projectCollection. A projectcollection is just a set...
10
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate,...
1
by: Chris Lieb | last post by:
I am new to XML Schema and am running into a bit of a snag. I have defined an XML-based scripting language for an updater program that I am working on. I would like to make a schema for this...
0
by: WideBoy | last post by:
Dear Group, I have recently started working with a large XML schema built to expose a domain specific data model in XML. I was wondering if any one has any ideas on how best to develop an XML...
2
by: SteveChamp | last post by:
I have been experimenting with .Net web services for a while and have a few questions about the schema in the automatically generated WSDL file, and whether its content can be manipulated...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.