Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xml_plugin4rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
xml_plugin4rosetta
Commits
bae8d55b
Commit
bae8d55b
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- minor improvements
parent
cf8fd96f
No related branches found
No related tags found
No related merge requests found
Pipeline
#3628
passed
2 years ago
Stage: build
Stage: test
Stage: packaging
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/org/slub/rosetta/dps/repository/plugin/SLUBXmlFormatValidationPlugin.java
+3
-2
3 additions, 2 deletions
.../dps/repository/plugin/SLUBXmlFormatValidationPlugin.java
with
3 additions
and
2 deletions
java/org/slub/rosetta/dps/repository/plugin/SLUBXmlFormatValidationPlugin.java
+
3
−
2
View file @
bae8d55b
...
@@ -67,7 +67,8 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
...
@@ -67,7 +67,8 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
Document
doc
=
db
.
parse
(
new
File
(
namespaceSchemaMapFile
));
Document
doc
=
db
.
parse
(
new
File
(
namespaceSchemaMapFile
));
Element
de
=
doc
.
getDocumentElement
();
Element
de
=
doc
.
getDocumentElement
();
NodeList
nodes
=
de
.
getElementsByTagName
(
"entry"
);
NodeList
nodes
=
de
.
getElementsByTagName
(
"entry"
);
for
(
int
i
=
0
;
i
<
nodes
.
getLength
();
i
++)
{
var
nodesize
=
nodes
.
getLength
();
for
(
int
i
=
0
;
i
<
nodesize
;
i
++)
{
Node
n
=
nodes
.
item
(
i
);
Node
n
=
nodes
.
item
(
i
);
NamedNodeMap
attributes
=
n
.
getAttributes
();
NamedNodeMap
attributes
=
n
.
getAttributes
();
List
<
String
>
attr_strings
=
List
.
of
(
new
String
[]{
"schematype"
,
"namespace"
,
"schemaurl"
});
List
<
String
>
attr_strings
=
List
.
of
(
new
String
[]{
"schematype"
,
"namespace"
,
"schemaurl"
});
...
@@ -279,7 +280,7 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
...
@@ -279,7 +280,7 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
return
result
;
return
result
;
}
}
private
boolean
checkIfWellformed
(
Document
doc
)
throws
ParserConfigurationException
,
IOException
,
SAXException
{
private
boolean
checkIfWellformed
(
Document
doc
)
{
/* detect XML type via NS */
/* detect XML type via NS */
boolean
isWellformedXml
=
false
;
boolean
isWellformedXml
=
false
;
XmlInfoRecord
info
=
getXMLinfo
(
doc
);
XmlInfoRecord
info
=
getXMLinfo
(
doc
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment