[Expat-bugs] [ expat-Patches-3446384 ] Report byte offsets for attr names and values

SourceForge.net noreply at sourceforge.net
Sat Mar 3 20:14:28 CET 2012


Patches item #3446384, was opened at 2011-11-30 12:20
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=310127&aid=3446384&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Moses Hall (ikavairai)
>Assigned to: Karl Waclawek (kwaclaw)
Summary: Report byte offsets for attr names and values

Initial Comment:
The attached patch exposes a new API for querying the byte offsets of attribute names and values. The new API is XML_GetAttributeInfo(), which returns a structure with four byte offsets: attribute name start & end, and attribute value start & end.

We use this new functionality in our indexing software at the University of Michigan Libraries; we needed to be able to index all parts of the source XML file, including attributes.

Patch is against the latest CVS sources. Thank you for your attention.

----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2012-03-03 11:14

Message:
This patch was applied in expat.h rev 1.81 and xmlparse.c rev 1.168.
It was implemented as a new conditional compile feature
XML_FEATURE_ATTR_INFO.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=310127&aid=3446384&group_id=10127


More information about the Expat-bugs mailing list