Comments (6)
@leslyarun Just saw this. Will look into it in my free time. Thanks for reporting this.
from json2xml.
@leslyarun Do you an example of the spec or some other library that does this? Or this is something very specific to how you want it?
from json2xml.
@vinitkumar This website does that - https://onlinexmltools.com/convert-json-to-xml
If we can implement like the same, it would be great.
from json2xml.
@leslyarun Alright. I see the website. Looks like it is using JS to convert it to XML on the fly. I will have to look into the website's JS and probably see if it can be ported to this implementation. In theory, it does looks possible. But I will once again confirm the spec and see if that' the correct way to do it. I can't promise anything at the moment but looks like a fun thing to hack on. I will update the ticket with the updates in case I find enough time to solve this.
from json2xml.
@leslyarun I do not seem to have time to implement this feature now. Though this seems interesting. Please feel free to send a PR for this if you are inclined. I do not want to make any false promises.
from json2xml.
The latest work done for #45 makes it much better. Here is the output for your json file:
<?xml version="1.0" ?>
<all>
<item type="dict">
<publication_number type="str">EP-0477689-B1</publication_number>
<application_number type="str">EP-91115483-A</application_number>
<country_code type="str">EP</country_code>
<kind_code type="str">B1</kind_code>
<application_kind type="str">A</application_kind>
<application_number_formatted type="str">EP19910115483</application_number_formatted>
<pct_number type="str"/>
<family_id type="str">24344316</family_id>
<title_localized type="list">
<item type="dict">
<text type="str">Verfahren zur Herstellung eines zur Filtration geeigneten porösen Polysulfon-Mediums</text>
<language type="str">de</language>
</item>
<item type="dict">
<text type="str">Procédé de fabrication d&#39;un milieu poreux en polysulfone approprié à la filtration</text>
<language type="str">fr</language>
</item>
<item type="dict">
<text type="str">Process for the preparation of porous polysulfone media suitable for filtration</text>
<language type="str">en</language>
</item>
</title_localized>
<inventor type="list">
<item type="str">BEDWELL, WILLIAM B.</item>
<item type="str">YATES, STEPHEN F.</item>
</inventor>
<inventor_harmonized type="list">
<item type="dict">
<name type="str">BEDWELL WILLIAM B</name>
<country_code type="str">US</country_code>
</item>
<item type="dict">
<name type="str">YATES STEPHEN F</name>
<country_code type="str">US</country_code>
</item>
</inventor_harmonized>
<assignee type="list">
<item type="str">Cpc Engineering Corporation</item>
</assignee>
<assignee_harmonized type="list">
<item type="dict">
<name type="str">CPC ENG CORP</name>
<country_code type="str">US</country_code>
</item>
</assignee_harmonized>
<entity_status type="str"/>
<art_unit type="str"/>
</item>
<item type="dict">
<publication_number type="str">EP-2309181-B1</publication_number>
<application_number type="str">EP-10012345-A</application_number>
<country_code type="str">EP</country_code>
<kind_code type="str">B1</kind_code>
<application_kind type="str">A</application_kind>
<application_number_formatted type="str">EP20100012345</application_number_formatted>
<pct_number type="str"/>
<family_id type="str">43332270</family_id>
<title_localized type="list">
<item type="dict">
<text type="str">Installation de chaudière à combustion à oxy-fuel et son procédé de fonctionnement</text>
<language type="str">fr</language>
</item>
<item type="dict">
<text type="str">Oxyfuel combustion boiler plant and operation method of oxyfuel combustion boiler plant</text>
<language type="str">en</language>
</item>
<item type="dict">
<text type="str">Oxyfuel-Brennkessel und Betriebsverfahren dafür</text>
<language type="str">de</language>
</item>
</title_localized>
<inventor type="list">
<item type="str">TANIGUCHI, MASAYUKI</item>
<item type="str">SHIBATA, TSUYOSHI</item>
<item type="str">HAYASHI, YOSHIHARU</item>
</inventor>
<inventor_harmonized type="list">
<item type="dict">
<name type="str">TANIGUCHI MASAYUKI</name>
<country_code type="str">JP</country_code>
</item>
<item type="dict">
<name type="str">SHIBATA TSUYOSHI</name>
<country_code type="str">JP</country_code>
</item>
<item type="dict">
<name type="str">HAYASHI YOSHIHARU</name>
<country_code type="str">JP</country_code>
</item>
</inventor_harmonized>
<assignee type="list">
<item type="str">Mitsubishi Hitachi Power Systems, Ltd.</item>
</assignee>
<assignee_harmonized type="list">
<item type="dict">
<name type="str">MITSUBISHI HITACHI POWER SYS</name>
<country_code type="str">JP</country_code>
</item>
</assignee_harmonized>
<entity_status type="str"/>
<art_unit type="str"/>
</item>
</all>
from json2xml.
Related Issues (20)
- dicttoxml adds 'b...' HOT 4
- setting the xmlns value HOT 6
- setting xsi location HOT 3
- Logging should be disabled by default HOT 4
- Convert a dict with list to json without <list> elements HOT 1
- Wrap list items in their parent element HOT 1
- Ampersand not parsed correctly when attrs are present HOT 1
- List items as tags with arguments HOT 9
- Crash in one test when switching to pytest HOT 1
- dicttoxml: recursive array broken since json2xml 3.19.0 HOT 1
- some unit tests do not fail in test_dict2xml.py but should
- Security issues reported by dlint
- Lower requirements constraints HOT 6
- List items with attributes HOT 10
- not well-formed (invalid token) with custom attrs if attr value has a " character HOT 3
- Movie online database compatibility HOT 1
- validated json fails conversion HOT 4
- @attrs keyword does not work at the root level HOT 1
- Preserve certain text from being escaped HOT 2
- Deprecate setup.py and move to standard based tools
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json2xml.