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
2
votes
1 answer

Create Unique Configuration between multiple Jackson mappers

Is there any interface in Jackson, or a better way to create the same configuration for multiple object mappers? For example, I have this both methods for the same class: public static File toCsv(List entityList) { final File tempFile =…
2
votes
1 answer

Very Weird Parsing of unusual xml

I have a problem with using XMLMappable. This likely is pilot error, but I haven't found it yet after 3 days. I've gone through the #xmlmapper questions/answers but haven't found anything that deals with this. This question How to access grand…
2
votes
2 answers

How to access grand child element?

I'm trying to learn XMLMapper, So I thought of using my W3 Schools XML example about books to try and map them my self. So I'm trying to print title, author from an array of Books. Books.XML
Hussein
  • 487
  • 6
  • 22
2
votes
1 answer

Unable to convert xml to object - Swift4

I have the following XML string. I am trying to parse with XMLMapper (3rd party library). I need to create array of The xml is as…
erdemgc
  • 1,701
  • 3
  • 23
  • 43
2
votes
1 answer

myBatis xml mapper filer in use with Java interface - dynamic SQL query

I have problem. I didnt create MyBatis config. I heard it may work without it. I have Java interface called for example: InterfaceDAO.java and myBatis mapper InterfaceDAO.xml InterfaceDAO.java : @Mapper public interface InterfaceDAO extends…
xross
  • 597
  • 4
  • 9
  • 25
2
votes
1 answer

showing a xml file contents in a dbctrlgrid

I have a win application project that should be done in delphi2010. In a form something like the image below,should be produced: www.up.iranblog.com/Files2/1e867ce0de784c469496.jpg First the image of product and under that tha name and the…
Maya
  • 21
  • 2
2
votes
1 answer

Complete list of items are not showing up after deserializing XML String into object using Jackson XML mapper

My input XML string contains a list of entries. When I deserialize it into object using jackson xmlmapper I see only one item in the list is coming. The parent elements have been defined as generic objects in POJO. xml string (ItemList contains 3…
Sparkle8
  • 225
  • 3
  • 13
2
votes
1 answer

How to configure XStream to map to different classes depending on XML attributes?

I have the following Java object hierarchy: public interface Function { public void calculate(long t); } public class ConstantFunction implements Function { private double constant; @Override public void calculate(long t) { …
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
0 answers

How to serialize my SOAP request class with namespaces using XmlMapper?

For a SOAP API I need to POST a request XML in the following format:
xetra11
  • 7,671
  • 14
  • 84
  • 159
1
vote
0 answers

Parse XML to Object using XmlMapper

How shoud I correctly declare object to parse it from XML? Problem with field ProblemField which is found several times. I try to parse it using xmlMapper.readValue(content, ParentObject.class) but List problemField is null. Input XML…
Shisui
  • 111
  • 4
1
vote
1 answer

Parsing image from XML Content

I am using XMLMapper for mapping XML response. Below is a few lines from the response I am getting from API URL,
iGatiTech
  • 2,306
  • 1
  • 21
  • 45
1
vote
0 answers

ObjectMapper no String-argument constructor/factory method to deserialize from String value ('1993-08-25'), problem with XMLGregorianCalendar

I am using jaxb2-maven-plugin xjc to generate java classes from xsd schema (example here: https://www.baeldung.com/jaxb ). Which works. Secondly I am using com.fasterxml.jackson.dataformat.xml.XmlMapper to deserialize XML file to Java object, but…
1
vote
1 answer

Generate XML with Swift 5 to Alamofire

I need generate the following XML in swift 5 in order to post it with Alamofire. I tried doing this with XMLMapper but could not figure out how to handle this. Could anyone give some advice?
1
vote
1 answer

Generate php entities from orm.xml Doctrine

Hi I'm on Symfony 5 and I'll like to generate php entities and update the scheme from a orm.xml file. I think it worked before with doctrine:generate:entities command. Any solution? Thanks in advance
dvillodres
  • 11
  • 1
1
vote
1 answer

No response from URL in XML parsing using XMLMappable

I am using XMLMapper with Alamofire to map a response. So far I can map most of the response, except for the Image and and Duration. Here is a link to the XML RSS Feed: https://belizing.libsyn.com/rss. Any help on how to map the duration and image?…
Jared Cowo
  • 13
  • 3