Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML Schema generation

Reply
Thread Tools

XML Schema generation

 
 
Sandy
Guest
Posts: n/a
 
      08-01-2008
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"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
w3c Schema naming patterns and template-based schema generation Steve Jorgensen XML 0 08-09-2005 08:05 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
XML Schema to XML Schema Conversion Hari Om XML 1 03-02-2004 09:04 PM
XML schema regular expressions question and recommended XML Schema book Fred Smith XML 1 02-05-2004 11:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57