|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Dec 2003
Messaggi: 458
|
[java]OMElement da leggere
ho un eggetto OMElement
se faccio il toString() ottengo una stringa che contiene tra l'altro un nodo così: <t: DS>blah blah blah</t: DS> come recupero il valore "blah blah blah"? io ho usato dei metodi sulle stringhe (substring ecc.) ma non c'è una maniera per scansionare l'OMElement direttamente? grazie |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Oct 2007
Città: Padova
Messaggi: 4131
|
Ciao,
non sapendo che cosa fosse un OMElement ho cercato sul web, e, se è il nome di un'interfaccia che fa parte di questo package: "org.apache.axis2.om", allor aprova a consultare i javadoc relativi: vedo due metodi che *potrebbero* essere quello che cerchi (getAttribute e getAttributeValue). Qui un link ai javadoc
__________________
As long as you are basically literate in programming, you should be able to express any logical relationship you understand. If you don’t understand a logical relationship, you can use the attempt to program it as a means to learn about it. (Chris Crawford) |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Dec 2003
Messaggi: 458
|
grazie
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 13:22.