After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 733900 - XML element children functions don't support XML fragments
XML element children functions don't support XML fragments
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-29 07:20 UTC by Kyle V
Modified: 2014-08-05 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch to support element traversal in fragments (1.28 KB, patch)
2014-07-29 07:35 UTC, Kyle V
none Details | Review

Description Kyle V 2014-07-29 07:20:00 UTC
The suite of functions used for finding and traversing element functions don't seem to support XML_DOCUMENT_FRAG_NODE but I don't think there is a reason not to.

I would expect xmlChildElementCount, xmlFirstElementChild and xmlLastElementChild to support this type of parent. This would allow easy traversal of element children from a fragment (in addition to the support for more fully fledged document types).
Comment 1 Kyle V 2014-07-29 07:35:22 UTC
Created attachment 281915 [details] [review]
Proposed patch to support element traversal in fragments
Comment 2 Daniel Veillard 2014-08-05 11:30:50 UTC
Makes sense, applied and pushed as git commit 1db9969966aac1e844372e9b3288653a296e0365

  thanks,

Daniel