-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support disabling General Entity Reference replacement in attribute values #65
Comments
XML specification requires DTD support to be handle general entity references, so as is Aalto can not really do this in standards-compliant way: it does not decode DTDs (although it may skip them relatively reliably), and thus can not detect invalid usage, and to skip ones that are declared (and error on undeclared). But I guess it would be reasonable to allow quiet skipping by returning ENTITY_REFERENCE, if setting you mention is on. |
Any news on this? |
If there are news, there will update to the issue. At this point I think a PR would be one way forward: I simply do not have time to add new features here. |
…tFactory.IS_REPLACING_ENTITY_REFERENCES is set to false allow SAXParserFactoryImpl to be customised Refs: FasterXML#65
PR opened: #74 |
…putFactory.IS_REPLACING_ENTITY_REFERENCES is set to false allow SAXParserFactoryImpl to be customised Refs: FasterXML#65
@claudemamo thank you for suggesting a fix! Unfortunately there are couple of issues with it; I'll add notes on PR itself. |
…ameter meant for retaining entities instead of misusing the StAX XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES feature Refs: FasterXML#65
…ameter meant for retaining entities instead of misusing the StAX XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES feature Refs: FasterXML#65
…ameter meant for retaining entities instead of misusing the StAX XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES feature Refs: FasterXML#65
…ameter meant for retaining entities instead of misusing the StAX XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES feature Refs: FasterXML#65
…AL_ENTITIES to avoid confusion with existing EXPAND_ENTITIES parameter Refs: FasterXML#65
…IBUTE_GENERAL_ENTITIES solve possible NullPointerException when referencing P_RETAIN_ATTRIBUTE_GENERAL_ENTITIES property Refs: FasterXML#65
…L_ENTITIES be the SAX feature key too.
Merged, with just one significant change: Also added a test so that new feature is usable with Stax API as well. Will wait a bit before releasing 1.3.0, but planning to do that relatively soon. |
With aalto-xml 1.1.0 disabling Entity Reference replacement causes an exception to be thrown in case of a non-standard Entity.
Using the test case of #64 with this line:
We get the following exception:
The text was updated successfully, but these errors were encountered: