473,802 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
#---------- ---- ----
-----------

"Destinatio n 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
"Destinatio n Address" 4 STRINGSTRING
*************** ******** File 2 *************** *****

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

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

"Destinatio n 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
"Destinatio n Address" 4 STRING
"Source Port" 2 STRING
"Destinatio n Port" 2 STRING INTVAL A-N
"Sequence Number" 4 -
"Acknowledgemen t 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 -
"Destinatio n SAP" 1 -
"Control" 1 -

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

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

Similar topics

2
2199
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 W3C or Relax NG as yet). I would also like to have a DTD that describes the same interface for those clients who are unable to use Schemas for one reason or another. Is it possible to generate a DTD from a given Schema ? I can seem to find lots of...
2
3358
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 sample). schema1.xsd sample: <!-- Here is a clipped down version of the group I want to redefine. --> <xsd:group name="INSURANCESVCRQMSGS"> <xsd:choice> <xsd:element ref="HomePolicyAddRq" minOccurs="1" maxOccurs="1"/>
0
1171
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 by a ResidentRef, and the same pattern would apply to other types of entities. That amounts to a lot of duplication in the schema, though, and results in a need to enforce consistency in how the naming convention is applied. A solution I've...
3
5921
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 schema. And then other schemas can extend it..... The classes created by XSD really help to make the development faster and easier. I really would like to use XSD.exe tool as much as possible and to avoid editing the classes defined by the tool. ...
2
1719
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 the documentation? I was wondering if there were any tools that would generate all possible XPATHs from a schema? Then I could compare the XPATH that are in the documentation with those derived from the schema.
4
2508
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 of projects. Therefore, I wish to include the project customType in the projectCollection namespace. I therefore have declared two xsd documents: project.xsd and projectcollection.xsd
10
1968
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, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
1
376
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 language since malformed XML documents break the updater. (I did not have time to add good error-handling code, so run-time errors can abound if the document is malformed.) A sample doc might look something like this: <manifest>
0
946
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 message schema from this large XML schema file? My ultimate goal is to end up with a message schema that is more user-friendly than the current complicated, and large namespace (set of
2
2038
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 programatically. First of all, I created several very simple test methods in my web service: <WebMethod()_ Public Function TestString(ByVal test As String) As String Return "The value passed was " + test End Function
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10536
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10304
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9114
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.