Questions tagged [xmlmapper]

XMLMapper is a third-party library for mapping XML to objects written in Swift.

XMLMapper is a third-party library for mapping XML to objects written in Swift.

Questions about how to use this library should have this tag.

To learn more visit the source of the project on Github

72 questions
28
votes
3 answers

Serialize Java List to XML using Jackson XML mapper

Hi I need to create an XML from JAVA using Jackson-dataformat XMLMapper. The XML should be like 1 Mighty Pulpo austin TX
Sharmistha Sinha
  • 315
  • 1
  • 5
  • 12
10
votes
2 answers

NoSuchMethodError on com.fasterxml.jackson.dataformat.xml.XmlMapper.coercionConfigDefaults()

I'm parsing a XML string to convert it to a JsonNode in Scala using a XmlMapper from the Jackson library. I code on a Databricks notebook, so compilation is done on a cloud cluster. When compiling my code I got this error…
Karzyfox
  • 319
  • 1
  • 2
  • 15
10
votes
3 answers

How to autowire default XmlMapper in Spring Boot application

I'm having some issues autowiring the default Jackson XmlMapper in one of my Spring Boot projects. I've created a simple example project that illustrates this. What I'm doing here is roughly based on…
ci_
  • 8,594
  • 10
  • 39
  • 63
4
votes
3 answers

xmlMapper allow to use any root element during deserialization

I have such code public class Xml { public static void main(String[] args) throws JsonProcessingException { String xmlString = "12345"; XmlMapper xmlMapper = new…
Haster
  • 113
  • 9
4
votes
2 answers

XML ResultMap in MyBatis with association

I see this issue very strange descibed on google or stack. Let me explain. I have Result Maps in annotations in my interface method. Only in this particular case I need dynamic query, and that is the reason I decided to write the whole mapper for…
xross
  • 597
  • 4
  • 9
  • 25
4
votes
1 answer

no String-argument constructor/factory method to deserialize from String value when it is a Integer

I am trying to deserialise the following xml into the objects: 28 31 My classes are the following public class Foo { private…
Dean Smith
  • 41
  • 1
  • 1
  • 4
4
votes
2 answers

XMLWriter extends attribute name with zdef?

I try to serialize some config classes to xml config files using the XMLMapper. but I have some trouble with the attribute generation. Actually the generated XML is perfect, but XMLMapper adds sometimes a prefix to my attribute names. e.g.
Divine
  • 312
  • 1
  • 3
  • 12
3
votes
2 answers

JacksonXmlRootElement with dynamic localName value

I am updating a POJO that we map to XML and the only difference is that someone wants both the old XML and some new, and with the only difference being the root Wrapper name (all the same fields), e.g. currently the root Xml Tag is set to…
johnnyB
  • 77
  • 1
  • 10
3
votes
1 answer

Jackson ConstructorProperties ignores properties names

I am really confused how jackson (2.9.6 version) ObjectMapper works with @ConstructorProperties annotation. It seems that mapper ignores property names which are present in a @ConstructorPropertiesannotation value method. What's even more…
yanefedor
  • 2,132
  • 1
  • 21
  • 37
3
votes
1 answer

Swift XMLMapper decoding nested attributes

Using the library from here. Here are the details, XML: Verification required
itsji10dra
  • 4,603
  • 3
  • 39
  • 59
3
votes
1 answer

How to fix new line error when parse xml

I have XML file with data. I am use FasterXML to parse it: xmlMapper.readValue And when my file has a format : When i parse this file all work. If i use void tag t, ex. when my file has a format: All work.…
Vitalii T
  • 453
  • 3
  • 13
3
votes
1 answer

Jackson/Woodstox XML Encoded Character Interpretation

I have been handed an XML file with instruction to read, edit, and write it using Jackson and Woodstox (as per the recommendation in the documentation). For the most part this has not been too hard; They're both pretty darn good at what it does. …
3
votes
2 answers

XML to Bean mapping : XML element value to Bean setter mapper

XML element value to Bean setter mapper : I have a XML file and set of Beans. I want to populate XML values in set of Beans through a mapper. Normally, When we are writing XML parsing & populating value in beans, we manually map XML element value…
Santosh
  • 782
  • 4
  • 15
  • 38
2
votes
2 answers

Update partial XML mapping to bean

I need to map an xml file subset of nodes to a Java Bean. For example map Value Value Value Value Value to public class DataBean…
dash1e
  • 7,677
  • 1
  • 30
  • 35
2
votes
1 answer

XMLMapper not showing result in UITableView

I'm facing an issue where i cannot get the responseData from XMLMapper (objectmapper) to a UITableView. Tableview shows 5 empty cells. Could anyone help me out on this issue? I'm trying to accomplish a tableview where the IDNR (String) is displayted…
1
2 3 4 5