List Info

Thread: How to get the info




How to get the info
country flaguser name
France
2007-08-08 10:14:59

Hi,

 

I am really new in XMLBeans, so probably this is an easy question:

 

I have the following piece of XML:

 

<Descriptions>

 &nbsp; &nbsp; &nbsp;  <Description Role=";Summary&quot;>

 &nbsp; &nbsp; &nbsp; &nbsp;  <Title>Title text</Title>

 &nbsp; &nbsp; &nbsp; &nbsp;  How do I acces here ??

 &nbsp; &nbsp; &nbsp; &nbsp;  <Media>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; <URL&gt;http://www.google.com</URL&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;  </Media>

 &nbsp; &nbsp; &nbsp;  </Description>

<Descriptions>

 

XMLBeans has created for me methods like getDescription(), gerRole, getTitle, getMedia, etc. But my prolem is that i don’t know how to get the piece of text “How do I acces here ??” ??


RE: How to get the info
country flaguser name
United States
2007-08-08 13:56:10
I think using XmlCursor, you can call getTextValue() on the <Descriptions>; node. ; This will basically get you all the text values that are dangling between this node's child nodes.


From: Ezequiel Puig [mailto:e.puizvivacances.fr]
Sent: Wednesday, August 08, 2007 8:15 AM
To: devxmlbeans.apache.org
Subject: How to get the info

Hi,

 

I am really new in XMLBeans, so probably this is an easy question:

 

I have the following piece of XML:

 

<Descriptions>

 &nbsp; &nbsp; &nbsp;  <Description Role="Summary">

 &nbsp; &nbsp; &nbsp; &nbsp;  <Title>Title text</Title>

 &nbsp; &nbsp; &nbsp; &nbsp;  How do I acces here ??

 &nbsp; &nbsp; &nbsp; &nbsp;  <Media>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; <URL&gt;http://www.google.com</URL&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;  </Media>

 &nbsp; &nbsp; &nbsp;  </Description>;

<Descriptions>

 

XMLBeans has created for me methods like getDescription(), gerRole, getTitle, getMedia, etc. But my prolem is that i don̵7;t know how to get the piece of text “How do I acces here ??” ??


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )