Jump to content
We've recently updated our Privacy Statement, available here ×

How can I get the name of a node of a XML Data Source in Ireport??


ashmedai82

Recommended Posts

Hi everybody, this is my problem:

**** My XML file

<ConjuntoPropiedades id="i703e9eea-49a3-41ad-bdf4-785c0e32784d">
     <Fisicas>
           <Dimensionales>
                 <Ancho xsi:type="TipoPropiedadFloat">
                       <ValorFloat>
                             <Float>100.0</Float>
                             <Unidad>
                                  <CodigoUnidadMedida>MTR</CodigoUnidadMedida>
                             </Unidad>
                       </ValorFloat>
                 </Ancho>
                 <Area xsi:type="TipoPropiedadFloat">
                       <ValorFloat>
                             <Float>100.0</Float>
                             <Unidad>
                                   <CodigoUnidadMedida>MTK</CodigoUnidadMedida>
                             </Unidad>
                       </ValorFloat>
                 </Area>
          </Dimensionales>
     </Fisicas>
</ConjuntoPropiedades>

 

*** I want to get the node names inside node Dimensionales, in this case are 'Ancho' and 'Area'

*** That xpath in XML Spy : ConjuntoPropiedades/Fisicas/Dimensionales/*/name() return two strings 'Ancho' and 'Alto'.

*** But in ireport 3.0.0, that expression fail.

*** The question is if it's possible to get the node names in a XML Data Source with the xpath function name() in iReport or in other words, how can i get a XML node name in iReport/JasperReports.

Thanks.


       

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...