I have a Filter xml structure that gets unmarshalled into a java class called Filter.
The XML state looks something like this:
<filter> <propertyType> <propertyName>prop1</propertyName> <propertyValue>val1</propertyValue> </propertyType> <propertyType> <propertyName>prop2</propertyName> <propertyValue>val2</propertyValue> </propertyType> </filter>
It usually works great.
However, there are certain situations when one of these property values contains an xml structure (see the second value property below):
<filter> <propertyType> <propertyName>prop1</propertyName> <propertyValue>val1</propertyValue> </propertyType> <propertyType> <propertyName>prop2</propertyName> <propertyValue><nodeA><nodeB>valB</nodeB></nodeA></propertyValue> </propertyType> </filter>
The problem is that after parsing this structure, the Value property is null.
I would just like to be able to unmarshalling to ignore this xml-looking code and treat it as a simple string value.
Does anyone know how I can do this? Thanks for any answer!
TimC
source share