473,395 Members | 1,696 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,395 software developers and data experts.

Default xml document

un
Hello all,

This may be a trivial question but..
Does anyone know the best way to implement defaults in xml?

Problem: I have an xml-document (which is used as input to a simulation
application) containing default values (both in attributes and
elements). Now I want to make it possible for a user to "override" one
or more of these values in a separate document, while the default values
are manitained for all others.

How is this best accomplished? I have defined a schema for the structure
of the document, and I am reading the document using DOM in Java (JAXP).

The only solution I can come up with is to read both documents (the
default and the user-defined) and compare them in the (Java) code? Is
this the best (only?) way to do it, or is there a simpler way that I
have missed?

Grateful for any comments.
/ulf

PS. Please e-mail
Jul 20 '05 #1
0 1077

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

Similar topics

5
by: Adam Child | last post by:
Hi All, I'm trying to validate an xml document. I'm having trouble setting the default namespace of the xml document. If I hard encode the namespace in the xml file then everything works fine....
2
by: Bill Cohagan | last post by:
In my app I'm validating an XML file against an XSD which contains several attribute default value specifications. I'm performing the validation via an xml document load() using a...
12
by: Stefano | last post by:
Hi all, what is the correct use of the "default" attribute in XML Schema? For example: <xs:element name="myProperty" type="xs:string" default="myDefaultValue"/> What can I do with it? What...
7
by: aDc | last post by:
Hello, I am getting some strange behavior with my ASP.NET application. Anytime I make a request to a page in the application the page_load for that page is fired as expected BUT then the...
2
by: zino | last post by:
Hi, in asp.net , I set the start page to "myStartingPage.html" when user get authenticated and the cookie is created, the following statement is supposed to redirect him to the original requested...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
1
by: Just D. | last post by:
Does anybody know how to set the Default Document (like Start.aspx) to a new Virtual Directory? I found this article on the Internet and read with the interest. ...
3
by: Gaetan | last post by:
I have setup 2 servers (Windows 2003 Server SP1, latest hotfix) with IIS and .Net Framework 1.1 and 2.0. None of the 2 servers have default.aspx listed as a default content document even when there...
6
tpgames
by: tpgames | last post by:
I'm trying to get a maze to default to always giving me the image as the marker and never give me the color as the marker. The code requires you to check a box to get the image marker to be used. So,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...

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.