Re: [java ee programming] How to parse xml

2011-03-10 Thread thiago moraes
There is also the JAX-B API.

You bind your java class to the xml.


2011/3/9 TIMOTHY GIKONYO 

> Hi,
>
> I think the jdom library gives you alot of flexibility with XML.. I have
> found it easy to use.
>
> Have a look at this explanation:
> http://www.ibm.com/developerworks/java/library/j-jdom/
> <http://www.ibm.com/developerworks/java/library/j-jdom/>
> Regards
> --- On *Wed, 3/9/11, bambang passion  >* wrote:
>
>
> From: bambang passion 
> Subject: Re: [java ee programming] How to parse xml
> To: rafal_lac...@wp.pl
> Cc: "Java EE Programming with Passion!" <
> java-ee-j2ee-programming-with-passion@googlegroups.com>
> Date: Wednesday, March 9, 2011, 4:58 AM
>
>
> Hi,
>
> This site also a good place to go :
>
>
> http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
>
>
> good luck
>
> bp
>
> On Tue, Mar 8, 2011 at 10:37 AM, bambang passion <
> bambang.teleinfocomproj...@gmail.com<http://mc/compose?to=bambang.teleinfocomproj...@gmail.com>
> > wrote:
>
> HI :
>
> You can go to :
> http://www.javapassion.com/portal/web-services-programming-with-passion/web-services-programming-with-passion
>
> tq
>
> bp
>
> 2011/3/7 Rafał Laczek 
> http://mc/compose?to=rafal_lac...@wp.pl>
> >
>
> Hi,
>
> In my code I have dropMsg String variable.
> Variable includes list of messages. The messages are as plain xml.
> Finally I must use each field. But to do it I must parse it into Data
> and String.
> Can maybe somebody know any good tutorial, etc.  how to do it.
>
> Thanks in advance for help!
> Regards,
> Rafal
>
> String dropMsgList = ..
> System.out.println(dropMsgList);
>
> 
>  
>2011.03.07 12:59:40
>2011.03.07 12:59
>2011.03.07 16:43
>Test message1 MsgText>
>  
>  
>2011.03.07 11:36:21
>2011.03.07 11:35
>2011.03.07 15:21
>Test message2
>  
> 
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com<http://mc/compose?to=java-ee-j2ee-programming-with-passion@googlegroups.com>
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<http://mc/compose?to=java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>



-- 
Thiago Alves de Moraes
thiagoa...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Re: [java ee programming] How to parse xml

2011-03-09 Thread TIMOTHY GIKONYO
Hi,
I think the jdom library gives you alot of flexibility with XML.. I have found 
it easy to use.
Have a look at this 
explanation: http://www.ibm.com/developerworks/java/library/j-jdom/
Regards
--- On Wed, 3/9/11, bambang passion  
wrote:

From: bambang passion 
Subject: Re: [java ee programming] How to parse xml
To: rafal_lac...@wp.pl
Cc: "Java EE Programming with Passion!" 

Date: Wednesday, March 9, 2011, 4:58 AM

Hi,

This site also a good place to go :

http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html



good luck

bp

On Tue, Mar 8, 2011 at 10:37 AM, bambang passion 
 wrote:

HI :

You can go to : 
http://www.javapassion.com/portal/web-services-programming-with-passion/web-services-programming-with-passion



tq

bp

2011/3/7 Rafał Laczek 


Hi,



In my code I have dropMsg String variable.

Variable includes list of messages. The messages are as plain xml.

Finally I must use each field. But to do it I must parse it into Data

and String.

Can maybe somebody know any good tutorial, etc.  how to do it.



Thanks in advance for help!

Regards,

Rafal



String dropMsgList = ..

System.out.println(dropMsgList);





  

    2011.03.07 12:59:40

    2011.03.07 12:59

    2011.03.07 16:43

    Test message1 MsgText>

  

  

    2011.03.07 11:36:21

    2011.03.07 11:35

    2011.03.07 15:21

    Test message2

 







--

You received this message because you are subscribed to the Google

Groups "Java EE (J2EE) Programming with Passion!" group.

To post to this group, send email to

java-ee-j2ee-programming-with-passion@googlegroups.com

To unsubscribe from this group, send email to

java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en







-- 

You received this message because you are subscribed to the Google

Groups "Java EE (J2EE) Programming with Passion!" group.

To post to this group, send email to

java-ee-j2ee-programming-with-passion@googlegroups.com

To unsubscribe from this group, send email to

java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


  

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Re: [java ee programming] How to parse xml

2011-03-08 Thread bambang passion
Hi,

This site also a good place to go :

http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html


good luck

bp

On Tue, Mar 8, 2011 at 10:37 AM, bambang passion <
bambang.teleinfocomproj...@gmail.com> wrote:

> HI :
>
> You can go to :
> http://www.javapassion.com/portal/web-services-programming-with-passion/web-services-programming-with-passion
>
> tq
>
> bp
>
> 2011/3/7 Rafał Laczek 
>
> Hi,
>>
>> In my code I have dropMsg String variable.
>> Variable includes list of messages. The messages are as plain xml.
>> Finally I must use each field. But to do it I must parse it into Data
>> and String.
>> Can maybe somebody know any good tutorial, etc.  how to do it.
>>
>> Thanks in advance for help!
>> Regards,
>> Rafal
>>
>> String dropMsgList = ..
>> System.out.println(dropMsgList);
>>
>> 
>>  
>>2011.03.07 12:59:40
>>2011.03.07 12:59
>>2011.03.07 16:43
>>Test message1 MsgText>
>>  
>>  
>>2011.03.07 11:36:21
>>2011.03.07 11:35
>>2011.03.07 15:21
>>Test message2
>>  
>> 
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Java EE (J2EE) Programming with Passion!" group.
>> To post to this group, send email to
>> java-ee-j2ee-programming-with-passion@googlegroups.com
>> To unsubscribe from this group, send email to
>> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
>> For more options, visit this group at
>>
>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Re: [java ee programming] How to parse xml

2011-03-07 Thread bambang passion
HI :

You can go to :
http://www.javapassion.com/portal/web-services-programming-with-passion/web-services-programming-with-passion

tq

bp

2011/3/7 Rafał Laczek 

> Hi,
>
> In my code I have dropMsg String variable.
> Variable includes list of messages. The messages are as plain xml.
> Finally I must use each field. But to do it I must parse it into Data
> and String.
> Can maybe somebody know any good tutorial, etc.  how to do it.
>
> Thanks in advance for help!
> Regards,
> Rafal
>
> String dropMsgList = ..
> System.out.println(dropMsgList);
>
> 
>  
>2011.03.07 12:59:40
>2011.03.07 12:59
>2011.03.07 16:43
>Test message1 MsgText>
>  
>  
>2011.03.07 11:36:21
>2011.03.07 11:35
>2011.03.07 15:21
>Test message2
>  
> 
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en