Code Monkey home page Code Monkey logo

xerces-for-android's People

Contributors

martinuy avatar

Watchers

James Cloos avatar  avatar

xerces-for-android's Issues

Add a jar for download

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

mf.javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found

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:

Cannot read attribute (short tag?)

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

Please add ProGuard configuration

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

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.