Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

element->NoChildren() #33

Closed
mikeaustin opened this issue Jun 23, 2012 · 1 comment
Closed

element->NoChildren() #33

mikeaustin opened this issue Jun 23, 2012 · 1 comment

Comments

@mikeaustin
Copy link

tinyxml2 has been the easiest to work with compared to many other libraries, and I thank everyone that works on it. I'm just curious about the method "NoChildren()". I'm used to using JavaScript browser DOMs which uses "hasChildNodes()". Why the difference in naming for many of the methods?

http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/Node.html

@leethomason
Copy link
Owner

Thanks! The API is derived from TinyXML-1's API which is old but therefore established. (I think TinyXML-1 pre-dates common usage of the JS API.) There are a few names in there I wish were better, but it seemed gratuitous to change from the v1 API. Both function names and philosophy/semantics of the API differ substantially from E4X, as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants