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

Is't possible to reduce the text duplicate

Hello

I have an xml structure (or planing to have) something that will have a
structure like this.

<event name="XXXX">
<param name="a"\>
<param name="b"\>
<param name="xxxx"\>
</event>
<event name="YYYY">
<param name="a"\>
<param name="b"\>
<param name="yyyy"\>
</event>

As can be seen the <param name="a"\> and <param name="b"\> are equal
in both event. This duplication will then continue. So then I was
thinking i could make an <head> element.

<head>
<param name="a"\>
<param name="b"\>
</head>

And writing like this instead.
<event name="XXXX">
<something-that-put-the-element-from-head-here>
<param name="xxxx"\>
</event>
<event name="YYYY">
<something-that-put-the-element-from-head-here>
<param name="yyyy"\>
</event>
Is there any mechanism in xml I can use to achieve this when declaring
the xml file. That should remove loots of the text duplication, and also
when I add something in the <head> that will be seen in all <event>
/Martin
Jul 20 '05 #1
0 1070

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

Similar topics

226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
5
by: malcolm | last post by:
Example, suppose you have these 2 tables (NOTE: My example is totally different, but I'm simply trying to setup the a simpler version, so excuse the bad design; not the point here) CarsSold {...
4
by: Maggie | last post by:
Hi, I am in a process of creating a text version of my website and was wondering if it was possible to accomplish this without actually making the same page twice using CSS. I have a...
6
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: twice a week (mondays and thursdays) Last-modified: March 10, 2001 Version: 1.95 URL: http://css.nu/faq/ciwas-mFAQ.html Maintainer:...
9
by: John Cho | last post by:
// CHO, JOHN #include<iostream> class fracpri{ int whole; int numer; int denom;
14
by: Alex | last post by:
Hi, I have a question regarding to string variable. Please look at below example. ------------------------------ #define STR "ABC" char *testStr testStr = STR;
3
by: Tcc | last post by:
Hi All, Assume there are some data in "a.txt": e.g. ABC
29
by: tmp123 | last post by:
I hope any of my post helps someone, specially to people who is learning C. Thanks to people who has teach me things I didn't know before. And to all... all... and all others, too much posts...
21
by: Johan Tibell | last post by:
I would be grateful if someone had a minute or two to review my hash table implementation. It's not yet commented but hopefully it's short and idiomatic enough to be readable. Some of the code...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.