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 6 1374
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
> 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
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
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.
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
>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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 1000's ...i am having a
problem with physically copy pasting the data into notepad
|
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 functions must
return an error code of a standard type, for example tError. Where tError is
typedefed as a long int. A list of error codes may then be defined in a
global header file, or perhaps upper bits of tError may indicate a module
|
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
|
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 //////////////////////////////////
Try
{
for ( ... ){// Code that might throw exception}
}catch(...){}
//////////////////////////////////////////////////////////////////////////
|
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 unstable state, repeatedly print out
"Please input an interger(0 ~ 4,294,967,295): ", what should I do to catch
the exception for it?
thanks.
include <fstream>
#include <iostream>
using namespace std;
| |
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 maxRequestLength parameter of the <httpRuntime> section
and that works as expected. What I want is to enforce a max file size but
haven't been able to trap the error thrown when the file is too large and
that's where I could use some help.
|
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 I have been
doing it right. I think I overdo it. Please have a look:
--
using System;
using System.IO;
|
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
necessary. My problem is how to construct dummy data consistent with
the type the class was instantiated with.
My class, stripped to it's essentials for my purpose here, is:
template <class T>
class Stack {
|
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 error
is hazardous; the error-handling code might repeat the same error that
triggered the error handling in the first place", and I don't
understand it clearly. So it would be very nice if someone here can
explain it more clearly. Thanks in...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |