cancel
Showing results for 
Search instead for 
Did you mean: 

Map XML node to context

olivier_thiry
Participant
0 Kudos

Hello Experts,

I have a XML document with following structure :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<Rowset>
  <Row>

     <HANDLE/>

     ....

     </Row>

</Rowset>

I would like to map the <Row> node to a context attribute with same structure... Is there a quick trick to do this or should I navigate through all the document and map every attribute individually in a loop ?

Thanks for your help

Regards

Olivier

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

As far as I know there is no quick way  to do it. You have to scan your xml and then, dynamically create your context. It is not that complicated if you use Java Sax.

regards

yuval peery

olivier_thiry
Participant
0 Kudos

I didn't say it was complicated, but as all developpers, I'm lazy So first attitude will be to search for a magic trick to do this in one line of code...

Thank you for your reply anyway

Former Member
0 Kudos

Hן Oilivier

I know exactly what you mean , being lazy.... But because we are lazy we
seek to automate everything by writing the best codes we can....

regards

yuval

Answers (0)