mbeckerle commented on code in PR #7: URL: https://github.com/apache/xerces-j/pull/7#discussion_r2019498698
########## src/org/apache/xerces/parsers/AbstractDOMParser.java: ########## @@ -933,6 +940,10 @@ public void startElement (QName element, XMLAttributes attributes, Augmentations return; } Element el = createElementNode (element); + // Extract location info if feature is enabled + if (fIncludeLocationInfo) { + el.setUserData( Constants.LOCATION_INFO, String.valueOf( fLocator.getLineNumber() ), null ); // Save location String into node Review Comment: Changed now to using a member on NodeImpl, not user data. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: j-dev-h...@xerces.apache.org