Feature Requests item #1189058, was opened at 2005-04-24 20:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=366035&aid=1189058&group_id=16035
Category: None Group: None Status: Open Priority: 5 Submitted By: Maarten Coene (maartenc) Assigned to: Nobody/Anonymous (nobody) Summary: use latest version of XmlPullParser2 Initial Comment: [from the dom4j-dev mailinglist] Hi all, in the process of packaging dom4j for the debian project I found that you rely on a rather outdated version of the XmlPullParser Version 2. Using the recent release (2.1.10) one gets compile errors in the org/dom4j/xpp/ProxyXmlStartTag.java class due to API changes in the 2.1.9 release of XPP2. Relevant section from changelog: * fixed typo in method XmlStartTag.removeAtttributes -> removeAttributes * added to XmlStartTag two new methods: removeAttributeByName(String uri, String localName) and removeAttributeByRawName(String rawName) Please update to the current XPP2 version in your next release ! Attached a (maybe wrong) implementation of the second change. The first should be obvious :-) But be aware I am not a XML guru and it may be wrong (don't know the exact meaning of rawname). Please CC me on comments or changes to these two methods, as I am not subscribed. Thanks, Wolfgang public boolean removeAttributeByName(String namespaceURI, String localName) throws XmlPullParserException { if (element != null) { QName qname = QName.get(localName, namespaceURI); Attribute attribute = element.attribute(qname); return element.remove(attribute); } return false; } public boolean removeAttributeByRawName(String rawName) throws XmlPullParserException { if (element != null) { Attribute attribute = element.attribute(rawName); return element.remove(attribute); } return false; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=366035&aid=1189058&group_id=16035 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev