Just realized my e-mail was not quite clear and for some reasons the format has 
been culed :-(

Basic question:

A) Can you give me a way to add extra tags to a XML message marshalled by JiBX. 
These extra tags are not predictable at compile time - as they depend on the 
way the customer configures its application - which means that I cannot make a 
JiBX static binding to them - I need to add them "manually" to the XML message 
before sending it.

B) The reciproque is: Can you give me a way to handle non-predictable XML tags 
which are present in an XML message? The XML message is typically handles by 
JiBX for unmarshalling but, for the same reson as explained in 'A)', some extra 
tags need to be handled programatically as they are non-predictable, thus not 
bindable - is there a way to handle this group of extra unpredictable tags as 
simple text (e.g. within a String) given I know where they are located in the 
XML message (e.g. what subtag) so I can apply some DOM processing and retrieve 
them?

I really tried to explain my problem the best I could ... hoping someone would 
be able to help me!

Thanks






 

Hello,

I have the following problem:
I have to deal with XML messages that are pretty much complient.
However some messages contain a "dynamic" part - Let me explain.

The following message is standard and well defined by a XSD - so I have my JiBX 
mapping that works just well :-)



    12
    football
    
    



However, some messages can look like this:



    12
    football
    
        paris
        2
        2
    



As you can see, the nested tag '' may contain any unpredicted tag, in this 
example "CITY", "NBRBROTHERS" and "NBRSISTERS" are not defined in the XSD and 
can be anything really - depending on customer's requirements.

I would like to be able to get anything within the tag  and put it as is (the 
fragment of XML message) into a String object of my mapped bean - later I would 
use standard DOM to analyse this dynamic part in my code - independently from 
JiBX.

Now is it possible to put the content of a tag (all its nested tags) into a 
simple String object in JiBX?  If not it really is a pain as I would not be 
able to use JiBX unless someone has a workaround (?)

May thanks for your support in this great software that JiBX is.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to