Skip to content

Preparation work for RIOT RDF/XML parsers#2006

Merged
afs merged 8 commits intoapache:mainfrom
afs:riot-rdfxml
Sep 2, 2023
Merged

Preparation work for RIOT RDF/XML parsers#2006
afs merged 8 commits intoapache:mainfrom
afs:riot-rdfxml

Conversation

@afs
Copy link
Copy Markdown
Member

@afs afs commented Sep 1, 2023

This PR is tidy-up and small improvements to internal classes gathered while working on RDF/XML.


By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

// This disables DTDs entirely for the factory.
// All DTDs are silently ignored; takes precedence over ACCESS_EXTERNAL_DTD
// DTDs are silently ignored except for xmlEventReader.nextTag() which throws an exception on a "DTD" event.
// Code can peek and skip the DTD/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. instead of / ?


// https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#saxbuilder

// // https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double //'s ? Doesn't really matter though.

return ;
}

// Need to do its just before we append anything, not after a NL,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/its/it?

@afs
Copy link
Copy Markdown
Member Author

afs commented Sep 2, 2023

@kinow -- thank you. Changes made.

@afs afs merged commit 0d5d107 into apache:main Sep 2, 2023
@afs afs deleted the riot-rdfxml branch September 2, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants