Re: [dom4j-user] How to retrace object from XML.

2008-02-05 Thread Evan Kirkconnell




JOX and XStreams are some other options.  If you don't need XML, then
Java Object Serialization should be
faster.(ObjectOuputStream/ObjectInputStream)
--Evan

Ozakca, Muzaffer wrote:

  If I'm understanding you correctly, what you need might be something like Castor or XmlBeans. Both can create Java objects from XML and vice versa based on a schema.

--
Muzaffer

  
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:dom4j-user-
[EMAIL PROTECTED]] On Behalf Of Joey
Sent: Tuesday, February 05, 2008 2:46 AM
To: [email protected]
Subject: [dom4j-user] How to retrace object from XML.

Hi all.

I have a question, I am using dom4j to write/read XML.  I need to
retrace some objects from XML. I tried to find solution in dom4j
manual,  but seems have to hard code class name and propery name, and
write those java code for every object. like this
---
String name = country.valueOf("@name");
---

so I think there should have some easy and common way to retrace
object from XML. but didn't find it now.
anybody can give some information to me about how to make it? thanks.

Joey.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

  
  -
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user
  





-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


Re: [dom4j-user] How to retrace object from XML.

2008-02-05 Thread Ozakca, Muzaffer
If I'm understanding you correctly, what you need might be something like 
Castor or XmlBeans. Both can create Java objects from XML and vice versa based 
on a schema.

--
Muzaffer

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:dom4j-user-
> [EMAIL PROTECTED] On Behalf Of Joey
> Sent: Tuesday, February 05, 2008 2:46 AM
> To: [email protected]
> Subject: [dom4j-user] How to retrace object from XML.
>
> Hi all.
>
> I have a question, I am using dom4j to write/read XML.  I need to
> retrace some objects from XML. I tried to find solution in dom4j
> manual,  but seems have to hard code class name and propery name, and
> write those java code for every object. like this
> ---
> String name = country.valueOf("@name");
> ---
>
> so I think there should have some easy and common way to retrace
> object from XML. but didn't find it now.
> anybody can give some information to me about how to make it? thanks.
>
> Joey.
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> dom4j-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


[dom4j-user] How to retrace object from XML.

2008-02-05 Thread Joey
Hi all.

I have a question, I am using dom4j to write/read XML.  I need to
retrace some objects from XML. I tried to find solution in dom4j
manual,  but seems have to hard code class name and property name, and
write those java code for every object. like this
---
String name = country.valueOf("@name");
---

so I think there should have some easy and common way to retrace
object from XML. but didn't find it now.
anybody can give some information to me about how to make it? thanks.

Joey.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


[dom4j-user] How to retrace object from XML.

2008-02-04 Thread Joey
Hi all.

I have a question, I am using dom4j to write/read XML.  I need to
retrace some objects from XML. I tried to find solution in dom4j
manual,  but seems have to hard code class name and propery name, and
write those java code for every object. like this
---
String name = country.valueOf("@name");
---

so I think there should have some easy and common way to retrace
object from XML. but didn't find it now.
anybody can give some information to me about how to make it? thanks.

Joey.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user