artiee / pojoxml Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pojoxml
Automatically exported from code.google.com/p/pojoxml
What steps will reproduce the problem?
1. getPojo(String "< XML content >",Class clas) will fail to open xmlInput file
2.
3.
What is the expected output? What do you see instead?
getPojo should read XML string instead of opening file
What version of the product are you using? On what operating system?
latest
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Jan 2012 at 8:50
Would it be possible to foresee an option not to export empry object fields .
But in general lib works fine :-)
Original issue reported on code.google.com by [email protected]
on 19 Mar 2013 at 1:51
Method "public Object getPojo(String xmlContent, Class objectClass)" is not
working.
It handles the xmlContent as filename.
Here my changes:
public Object getPojo(String xmlContent, Class objectClass) {
XmlToPojo xmlToPojo = new XmlToPojo(objectClass);
return xmlToPojo.parseXMLFromXmlData(xmlContent, pojoXmlInitInfo);
}
The call of the parser in class XmlToPojo has to be a little different:
document = docBuilder.parse(new InputSource(new
ByteArrayInputStream(xmlData.getBytes("utf-8"))));
Maybe you should add some unit-tests for the "String-Case", not only for the
"File-Case".
Nice tool.
Regards,
Thorsten
Original issue reported on code.google.com by [email protected]
on 26 Mar 2014 at 12:18
Is there any plans to make pojoxml available as Maven artifact in any public
repository? Your project looks very promising and exactly what I need but it is
not available in the Maven central or any other repositories. Or I was not able
to find it. If this is the case then it would be nice to have it documented.
Original issue reported on code.google.com by [email protected]
on 1 Oct 2012 at 5:30
class inheritance is not being correctly handled.
Original issue reported on code.google.com by [email protected]
on 19 May 2011 at 3:57
What steps will reproduce the problem?
1. Pojo with blob
2. Output xml contains </blob>
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Sep 2012 at 4:02
What steps will reproduce the problem?
1. Call getPojo(xmldata, MyPOJO.class)
2.
3.
What is the expected output?
parse the xmlstring and create pojo object
What do you see instead?
FileNotFoundException as it try to locate input xml string as filename !
What version of the product are you using? On what operating system?
pojoxml-1.0
Please provide any additional information below.
At PojoXmlImpl.getPojo()
we should call xmlToPojo.parseXMLFromXmlData instead of
xmlToPojo.parseXMLFromFile
And in XmlToPojo
document = docBuilder.parse(xmlData);
Instead above line, should replace with below lines
InputSource inputSource = new InputSource( new StringReader( xmlData ) );
document = docBuilder.parse(inputSource);
Original issue reported on code.google.com by [email protected]
on 5 Jan 2014 at 7:59
Attachments:
What steps will reproduce the problem?
1. create String with "<>" inside
2. create XML from pojo
3. result xml contains <> instead of <>
What is the expected output? What do you see instead?
see 3.
What version of the product are you using? On what operating system?
1.0
Please provide any additional information below.
afaik these should be replaced, its not valid then
Original issue reported on code.google.com by [email protected]
on 29 Feb 2012 at 11:38
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.