opticron / kxml Goto Github PK
View Code? Open in Web Editor NEWA XML parsing/generating library for D1/D2 Phobos/Tango. Commonly believed to blow std.xml out of the water.
A XML parsing/generating library for D1/D2 Phobos/Tango. Commonly believed to blow std.xml out of the water.
The documentation is very lacking, and it's almost impossible to use for me because of it. Can I get at least one example program to get a grasp on how it does work, or should I look for some other kind (although uneditable by humans) of data storage.
This would allow to parse HTML5 documents.
See: http://davido.anticruft.com/posts/html-parsers-d
I made a few updates on kxml for DMD 2, the code has more strict adherence to the D syntax style but it removes compatibility. I also created a travis test for it.
https://github.com/etcimon/kxml
If you'd like to create a kxml2 repository, perhaps I could make a pull request on it
It would be cool if getAttribute can return a default value if the attribute is not found.
string getAttribute(string name, string defaultValue = null)
{
if (name in _attributes)
return xmlDecode(_attributes[name]);
else
return defaultValue;
}
While testing a D port of some C++ XML handling code I noticed that the xmlDecode() function used for entity decoding seems a bit on the slow side.
More specifically, the regex stuff used for decimal/hex entities is making up a large amount of the runtime. (and the XML i'm testing doesn't actually contain any entities to process, so this is a more unfortunate overhead).
Just seems that using a regex for this is less efficient than the manual approach used by other D XML libs?
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.