Giter Club home page Giter Club logo

Comments (7)

javadev avatar javadev commented on April 28, 2024 1
<a><b number="true">100</b></a>

will be converted to json:

{
  "a": {
    "b": 100
  },
  "#omit-xml-declaration": "yes"
}

from underscore-java.

josephshirima avatar josephshirima commented on April 28, 2024

Thank you!

from underscore-java.

josephshirima avatar josephshirima commented on April 28, 2024

How to convert XML to MAP? i need to remove a XML root element.

from underscore-java.

javadev avatar javadev commented on April 28, 2024

U.fromXmlMap(xmlstring) will convert xml to map.

from underscore-java.

josephshirima avatar josephshirima commented on April 28, 2024

Try to use it on spring boot app on rabbit queue method handler. But am getting this exception. What is may be a possible causes?

java.lang.ExceptionInInitializerError: null
at com.github.underscore.lodash.U.fromXmlMap(U.java:2142) ~[underscore-1.58.jar:na]
at com.github.underscore.lodash.U.fromXmlMap(U.java:2137) ~[underscore-1.58.jar:na]
...
....
....
....

Caused by: java.lang.IllegalArgumentException: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at com.github.underscore.lodash.Xml$Document.createDocument(Xml.java:1418) ~[underscore-1.58.jar:na]
at com.github.underscore.lodash.Xml$Document.access$000(Xml.java:1392) ~[underscore-1.58.jar:na]
at com.github.underscore.lodash.Xml.(Xml.java:65) ~[underscore-1.58.jar:na]

from underscore-java.

javadev avatar javadev commented on April 28, 2024

I will preape a fix for it.

from underscore-java.

javadev avatar javadev commented on April 28, 2024

I prepared a fix: #269

from underscore-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.