Comments (5)
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.
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.
I'm going to try this right now!
Thanks! BoutySource?
from dart-xml.
Can't submit bounties on closed issues. Gah.
from dart-xml.
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)
- XmlElement.setAttribute can create duplicate attribute if the name contains a colon HOT 3
- Dependency issues HOT 3
- Flutter error : 'XmlText' isn't a type. HOT 1
- 2.11 End-of-Line Handling HOT 3
- Parse file that does not have closing tags HOT 2
- How can I transform XML with XSL? HOT 3
- How to remove node from xml HOT 2
- How to omit xml declaration and remove indentation? HOT 3
- How to add new line before each attribute? HOT 1
- How to convert xml to string without backslahes HOT 2
- entityMapping: Works unexpectedly HOT 3
- New release with XPath support? HOT 3
- isSelfClosing not working HOT 5
- XmlParserException: ">" expected at 1:16 HOT 3
- Parsing does not work starting with 6.2.2 HOT 3
- Validate XML file against XSD HOT 1
- Support custom entities HOT 1
- Error: Type 'Result' not found. HOT 2
- The dart sdk version in pub.yaml should be a range? HOT 1
- value of text element is null HOT 2
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 dart-xml.