You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long element names may cause some duplicate and count errors while parsing
ERROR: duplicated path: /xbrli:xbrl/in-bse-cg:AggregateValueOfSecurityProvidedDuringSixMonthsOfSecurityInConnectionWithLoanOrAnyOtherD
...
ERROR: 0 elements found with /xbrli:xbrl/in-bse-cg:AggregateAmountAdvancedDuringSixMonthsOfAnyLoanOrAnyOtherFormOfDebtToPromoterOrAnyOtherE xpath expression.
Original xpath: /xbrli:xbrl/in-bse-cg:AggregateAmountAdvancedDuringSixMonthsOfAnyLoanOrAnyOtherFormOfDebtToPromoterOrAnyOtherE
Cause: tree.getpath(ele) truncates the returned path to 110 characters.
UPDATE:
Reported as
libxml2
bug sincexmllint
shows same behavior.https://gitlab.gnome.org/GNOME/libxml2/-/issues/715
Long element names may cause some duplicate and count errors while parsing
Cause:
tree.getpath(ele)
truncates the returned path to 110 characters.Possible fix:
tree.getelementpath(ele)
Reproduce
Given an XML with namespaces
truncated path
complete path with
tree.getelementpath()
While trying to report an
lxml
bug I found that it's anlibxml2
bug asxmllint
shows the same behaviorThe text was updated successfully, but these errors were encountered: