473,405 Members | 2,334 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,405 software developers and data experts.

Handling large namespace

Hi

I am wondering if someone has any ideas on how I might resolve the
following problem.
I have a large namespace file (1.5 MB) generated from a UML logical
data model, which needless to say, is very large. My worry is that
instance documents based on this namespace will take significant
resources in terms of time, memory and CPU to validate against this
namespace schema.

So my questions are as follows:
1. Is there some way of breaking this large namespace file without
creating several individual files?

2. Are there any other alternative ways of addressing this problem?

3, Why do people choose to translate complex data models into even more
complex namespace file(s)?

Any thoughts or ideas on this would be much appreciated.

Many thanks,

Naran

Feb 11 '06 #1
6 1361
WideBoy wrote:
I have a large namespace file (1.5 MB) generated from a UML logical
data model, which needless to say, is very large.
I'm not sure what you mean by a "namespace file". A schema?

If so, breaking it into smaller pieces would not improve validation
speed. It *is* possible to divide a schema into smaller units, but they
all have to get reassembled into a single model of the grammar before
validation takes place, so it wouldn't save you anything.
3, Why do people choose to translate complex data models into even more
complex namespace file(s)?


Again: Since I don't know what you mean by a "namespace file", I can't
answer the question.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 11 '06 #2
> I have a large namespace file (1.5 MB) generated from a UML logical
data model, which needless to say, is very large. My worry is that
instance documents based on this namespace will take significant
resources in terms of time, memory and CPU to validate against this
namespace schema.


I forgot to add: An IBM team recently published a paper demonstrating
that schema-aware parsing can actually run *FASTER* than non-validated
parsing, by taking advantage of the schema information to produce a
parser specifically optimized for that kind of document.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 11 '06 #3
WideBoy wrote:
Hi

I am wondering if someone has any ideas on how I might resolve the
following problem.
I have a large namespace file (1.5 MB)


Hi, what is a namespace file?

Soren
Feb 13 '06 #4

Joe Kesselman wrote:
I forgot to add: An IBM team recently published a paper demonstrating
that schema-aware parsing can actually run *FASTER* than non-validated
parsing, by taking advantage of the schema information to produce a
parser specifically optimized for that kind of document.


Interesting, but that's a "can" not "will". I doubt this is a common
technology any time soon. I also imagine that it would rely on
regularly seeing documents to the same schema - the overhead of
optimizing the parser is surely heavy for the first document.

Nice idea though - I expect we'll see more of it in the future.

Feb 14 '06 #5
Joe,

Thanks for taking the time to reply to my questions.
sorry for my tardy response, have been on hol. for a few days.

Basically, what I have is a schema file with a specific namespace which
we hope that other interested parties working in our domain will use.
Pretty much like the w3c schema file with it's namespace. Only in my
case the schema/namespace file is stupidly large with a crazy,
umimaginable set of elements and structures resulting from an OO model
with tonnes of inheritance being employed for no obvious reason. The
OO model is basically a corporate logical data model. That is not
intended to ever translate into any physical database. However, the
intention is that with the creation of this namespace it will be
possible to exchange data via XML messages between compliant
applications.

I gather from respondents that breaking up this file into several
smaller files is not going to improve validation times of XML
documents. I can indeed concur with this from bitter experience. Are
there any other ways of achieving this goal?
I'm not entirely sure why people elect to go down the namespace route
to solve this data-interchange problem, anyway?

Regards,

Naran

Feb 16 '06 #6
>I'm not entirely sure why people elect to go down the namespace route
to solve this data-interchange problem, anyway?


Because it guarantees absolute conformity to the schema. If it doesn't
conform it won't validate. There is no better way for ensuring
standardisation of data than making all the xml instance documents
refer to a single schema.

Feb 16 '06 #7

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

Similar topics

2
by: aejaz | last post by:
Hey all I am new to VC++ I want to have my c++ program output to a notepad file i store my data in arrays and then use cout to output the data in DOS...as i generate data in the order of...
7
by: Spacen Jasset | last post by:
The main two desirable things I feel error handling should provide are these: 1) Debugging and diagnostic aid 2) User feedback One method that is used a fair amount it to 'say' that all...
4
by: Heinz Zimmermann | last post by:
Hello, is it (in c#) possible, to splitt a large class into two or more files ? If yes, how can I do that ? Thanks Heinz
34
by: rawCoder | last post by:
I have read that Exception Handling is expensive performance wise ( other than Throw ) , but exactly how ? Please consider the following example ... ////////////////// Code Block 1...
1
by: maggie | last post by:
My function use cin to get a input data, if my input is smaller enough, it works fine; but if input a very large number ,i.e. a number out of the data defined range, the program will go to ...
14
by: Al Smith | last post by:
I need help in implementing proper error handling. I am trying to upload a file based on the sample code below. The code works well except if the file selected is too big. I do know about the...
9
by: Gustaf | last post by:
I'm confused about structured error handling. The following piece of code is a simplification of a class library I'm working on. It works, and it does what I want, but I'm still not convinced that...
8
by: RichardOnRails | last post by:
I have a Stack class that works fine. In particular, when it encounters an error, it cout's a msg and exits. However, I'd like to change it to report the error and continue with dummy data as...
2
by: nguyenminhhai | last post by:
Hi everyone, I'm reading "The C++ Programming Language" (Bjarne Stroustrup, 3rd edition). At page 193, he said "Doing error handling using the same level of abstraction as the code that caused the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.