mishakharaba / xerces-for-android Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/xerces-for-android
License: Apache License 2.0
Automatically exported from code.google.com/p/xerces-for-android
License: Apache License 2.0
It would be nice to be able to download a packaged JAR instead of having to
check out the source and build the jar.
Original issue reported on code.google.com by [email protected]
on 18 May 2014 at 7:04
What steps will reproduce the problem?
1. Adding xerces-for-android project in Build path of Android project
2. Calling the following code:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
What is the expected output? What do you see instead?
The following exception is thrown (see the attachment for complete stack trace):
FATAL EXCEPTION: main
mf.javax.xml.parsers.FactoryConfigurationError: Provider
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found
at mf.javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:146)
Please provide any additional information below.
Changing the string in line 144 in
mf.javax.xml.parsers.DocumentBuilderFactory.java from:
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"
to:
"mf.org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
solves the problem.
Original issue reported on code.google.com by [email protected]
on 25 Oct 2014 at 12:21
Attachments:
What steps will reproduce the problem?
I parse a XML file (RSS) of the form
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:rtl="http://www.rtl.be/rtltvi/dtds/rss-1.0.dtd">
<channel>
<item>
<title>title</title>
<link>url</link>
<description></description>
<pubDate short="04-10-2013">date</pubDate>
<enclosure url="http://www.dns.com/4212514.jpg" length="0" type="image/jpeg" />
...
XPathExpression<Object> query =
XPathFactory.instance().compile("/rss/channel/item");
List<Object> lst = query.evaluate(document);
for(Object o: lst){
if(o instanceof Element){
Element current = (Element) o;
for(Object oo: XPathFactory.instance().compile("./enclosure").evaluate(current)){
}
}
}
}
If I tried to access to oo, it fails.
If I try to list Attributes, it fails.
If I use the query ./enclosure/@url, it fails
What is the expected output? What do you see instead?
To get the attribute's value
What version of the product are you using? On what operating system?
deport of today (2014 Oct 12)
Please provide any additional information below.
I think about a problem in the short tag handling ( open and close the tag <
... />)
Original issue reported on code.google.com by Belegkarnil
on 12 Oct 2014 at 7:37
Obfuscated and minimized APK with xerces-for-android has a smaller file size of
about 500KB. However, it throws run-time exception as some classes are loaded
dynamically by their names.
What would be the correct ProGuard configuration for xerces-for-android?
Original issue reported on code.google.com by [email protected]
on 29 Oct 2014 at 12:39
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.