Coder Social home page Coder Social logo

Comments (5)

renggli avatar renggli commented on July 17, 2024

Thank you for your report. Can you provide a link to an XML file that shows the issue, so that I can reproduce the problem on my machine?

from dart-xml.

renggli avatar renggli commented on July 17, 2024

I committed some improvements (b40dc44) that significantly speed up the XML parser performance. I also updated the pub package (a9ea5c3).

For further improvements I need to see what exact problem you are observing. If necessary, please reopen this issue and provide a test-case (for example in a pull request of https://github.com/renggli/dart-xml/blob/master/test/xml_benchmark.dart).

from dart-xml.

Nanonid avatar Nanonid commented on July 17, 2024

I'm going to try this right now!
Thanks! BoutySource?

from dart-xml.

Nanonid avatar Nanonid commented on July 17, 2024

Can't submit bounties on closed issues. Gah.

from dart-xml.

Nanonid avatar Nanonid commented on July 17, 2024

Parsing KML XSD which can be found here:
http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd
Simplistic:
class Schema {
xml.XmlDocument doc;
Schema( String txt_ ){
parse(txt_);
}

bool parse( String xml_ ){
if( xml_ == null || xml_.isEmpty ){
throw "No XML to parse";
}
doc = xml.parse(xml_);
return true;
}
}
void main() {
File kml = new File('../schema/kml/2.2.0/ogckml22.xsd');
String kmlSchemaTxt = kml.readAsStringSync( encoding:UTF8 );
Stopwatch stopwatch = new Stopwatch()..start();
Schema kmlschema = new Schema( kmlSchemaTxt );
print( "${stopwatch.elapsed}");
}

Output:
0:00:00.143166

Which I'm quite happy with.

from dart-xml.

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.