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

castor, map by attribute

Hi,

I have an existing XML file which looks something like this:

<ELEMENT TYPE="DataStuff">
<ENT_ID>1000</ENT_ID>
<CONTEXT>foo</CONTEXT>
<NAME>255.255.255.255</NAME>
</ELEMENT>
<ELEMENT TYPE="AnotherDataStuff">
<ENT_ID>1000</ENT_ID>
<CONTEXT>foo</CONTEXT>
<NAME>255.255.255.255</NAME>
<SUBJECT> SUBJECT </SUBJECT>
</ELEMENT>
..
..
..

I want to use the attribute "type" to map the class DataStuff or
AnotherDataStuff rather than use the tag <element>. I haven't run
across any examples of this. Does anyone know how to write the castor
map file so that the class is associated with an attribute rather than
a tag?

Thanks,
Judy
Nov 12 '05 #1
0 937

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

Similar topics

3
by: Casper B | last post by:
The www.castor.org project seems to be gone. I loved this XML-Java binding framework and I am wondering if anyone are aware of what has happened to it?! Thanks, Casper
1
by: Przemyslaw Wegrzyn | last post by:
Hi! I'm quite new to Python. Is there anything like Castor or JAXB available for Python ? All I have found is generateDS.py, but it seems to be very limited and a bit buggy - it seems to be...
2
by: Christophe Geraud | last post by:
I got the following exception with Castor: "The prefix 'xml' is reserved (XML 1.0 Specification) and cannot be declared." I got this exception using or not a mapping file. Can anyone tell what it...
0
by: Ulf Heyder | last post by:
I use castor-0.9.5 with xerces-2.4.0 to automatically generate classes from XSDs via source generator and un-/marshall JAVA objects to/from XML files. My question is how to tell the castor...
0
by: George Palmer | last post by:
Hi, I'm writing an xml file using Castor. It looks something like this: <a> .... </a> <b> .... </b>
1
by: madhununna | last post by:
I'm trying to parse string data using castor and it looks like the new lines are getting lost. I'm using castor 0.9.4.3 For example: Input <INPUT> First line
0
by: manas589 | last post by:
Hi Can any one tell me how to use binding.xml while generating castor bean from an xsd file. i have one xsd file where two element are conflicting. so i thought to use binding file while...
1
by: PPA | last post by:
Hi Guys I am really new to XML/XSD and Castor. Could you please help me out here? I have following XSD: -----------------------------XSD STARTS----------------------------------- <xs:schema...
2
by: Roshan Naik | last post by:
Castor is a pure C++ Library that introduces the Logic paradigm (LP) into C++. Although LP has been well explored in Computer science, it remains under utilized in main stream software...
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
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
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,...
0
isladogs
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...

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.