tyt3 / LIS_2407

This repository includes stuff for LIS 2407
0 stars 0 forks source link

Error with XML #1

Open tyt3 opened 6 years ago

tyt3 commented 6 years ago

For some reason, the following line is causing issues, and I can't figure it out. Help please! πŸ™

cork and leather LIS_2407/caper_11.xml
mbolam commented 6 years ago

@tyt3 -- It's hard for me to tell without the "bad" line of XML appearing in the file. I'm guessing you didn't have as a 'child' of ? Try moving it there and see how it goes.

tyt3 commented 6 years ago

@mbolam

This is the record with the bad line:

<?xml version="1.0" encoding="UTF-8"?> <mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-7.xsd">

General Antonio Lopez de Santa Anna’s Prosthetic Leg Leg of Santa Anna Bartlett, Charles creator 4th Illinois Infantry thief three dimensional object 1838 1838 English eng cork and leather 48" General Lopez de Santa Anna's prosthetic leg was captured during the Mexican-American War by Illinois troops (the Fourth Regiment Illinois Volunteers) after the U.S. victory in the Battle of Cerro Gordo in 1847. The prosthetic was briefly sent to the Crystal Palace in London and later shown in Washington, D.C. Despite requests to return the leg to Mexico or Texas, it is now stored under glass at the Illinois National Guard headquarters in Springfield for public viewing. Santa Anna, Antonio Lopez de 1794?-18761 Mexican War, 1846-1848--Campaigns--Mexico Cerro Gordo, Battle of, Mexico, 1847 artificial legs looting United States CAPER00000011 Illinois State Military Museum
tyt3 commented 6 years ago

It lost the indentions with the copy and pasting, but I couldn't attach the file here since it doesn't support XML. I can upload it to the repository if that'll be better.

mbolam commented 6 years ago

Indenting doesn't matter, but it also lost a bunch of angle brackets, which makes it a hassle. Either upload or just email it to me.

tyt3 commented 6 years ago

@mbolam

Uploaded!

mbolam commented 6 years ago

It looks fine to me? I am not getting an error in Oxygen at all. So weird. Can you try copying/pasting the error? You should be able mouse-over it, then hit F2 to focus, then copy/paste the text. That might help.

tyt3 commented 6 years ago

So, I get an error when I try to open it via the File Exchange feature on CourseWeb. Chris got a similar error with his, and it was fine when I just took out that line. I'll forward you what he sent me via e-mail.

mbolam commented 6 years ago

I wonder if that File Exchange is messing with the XML? Trying to render it or something? The file you uploaded here is fine. Maybe share via email or box instead? Who knows what courseweb is doing with those files.

mbolam commented 6 years ago

In theory is could be the quote symbol in your extent. That is technically a reserved character, though it typically doesn't cause issues. You could try replacing that with 'inches', which is probably better for you metadata anyway, as " is kind of a short hand and may not be recognizable by all users.

tyt3 commented 6 years ago

I tried it with inches yesterday, and that didn't fix it, but I will change it to inches per your other point. But when I take out the form subelement, it works just fine.

Tyrica


From: Michael Bolam notifications@github.com Sent: Thursday, July 5, 2018 4:36:34 PM To: tyt3/LIS_2407 Cc: Terry, Ty'rica Jy'nae; Mention Subject: Re: [tyt3/LIS_2407] Error with XML (#1)

In theory is could be the quote symbol in your extent. That is technically a reserved character, though it typically doesn't cause issues. You could try replacing that with 'inches', which is probably better for you metadata anyway, as " is kind of a short hand and may not be recognizable by all users.

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftyt3%2FLIS_2407%2Fissues%2F1%23issuecomment-402845129&data=01%7C01%7Ctyt3%40pitt.edu%7C7088cfe6abe74ad0743308d5e2b700ae%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=jnZM5vWW6S6aNb56J1mcvalqnp4Wq91y%2FdZIA%2FMG%2BXk%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAg03t5lSaBhpNon8VRRIk2VSJ1R2OWfTks5uDnjSgaJpZM4VEcJ_&data=01%7C01%7Ctyt3%40pitt.edu%7C7088cfe6abe74ad0743308d5e2b700ae%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=upCxlMiFSyTEqCEd%2Bn0nINjCi6JvMkKn%2FZxJgNwyHz4%3D&reserved=0.

mbolam commented 6 years ago

Just to clarify, are you seeing this error message in Oxygen, or only in the File Exchange tool? The record is fine as far as MODS/XML is concerned, as far as I can tell. I really think File Exchange is corrupting something, to be honest.

tyt3 commented 6 years ago

Just the File Exchange tool! It's really weird because the issue seems inexplicable.

I'll let Chris know. He tried removing the offending line, which was valid in Oxygen, but then it just threw up another error.

Tyrica


From: Michael Bolam notifications@github.com Sent: Thursday, July 5, 2018 4:42:44 PM To: tyt3/LIS_2407 Cc: Terry, Ty'rica Jy'nae; Mention Subject: Re: [tyt3/LIS_2407] Error with XML (#1)

Just to clarify, are you seeing this error message in Oxygen, or only in the File Exchange tool? The record is fine as far as MODS/XML is concerned, as far as I can tell. I really think File Exchange is corrupting something, to be honest.

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftyt3%2FLIS_2407%2Fissues%2F1%23issuecomment-402846698&data=01%7C01%7Ctyt3%40pitt.edu%7C94873fe93bf3448e68ec08d5e2b7dd17%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=8mSBQKyQVXT6RSrmU2Yh5zOMkSTpkJ6Os0kvnz1qqEk%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAg03t_NhW25RIkXXidar_e36voBph3Ezks5uDnpEgaJpZM4VEcJ_&data=01%7C01%7Ctyt3%40pitt.edu%7C94873fe93bf3448e68ec08d5e2b7dd17%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=DxHCE8%2BJpP5A%2Fkn5iFs%2FOhxlqxjvjCw8neMhYiIl3hA%3D&reserved=0.

mbolam commented 6 years ago

Yeah. I'd just find a different way to share...

tyt3 commented 6 years ago

Will do!

Tyrica


From: Michael Bolam notifications@github.com Sent: Thursday, July 5, 2018 4:49:33 PM To: tyt3/LIS_2407 Cc: Terry, Ty'rica Jy'nae; Mention Subject: Re: [tyt3/LIS_2407] Error with XML (#1)

Yeah. I'd just find a different way to share...

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftyt3%2FLIS_2407%2Fissues%2F1%23issuecomment-402848242&data=01%7C01%7Ctyt3%40pitt.edu%7Cf952139c78a64477251508d5e2b8d108%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=YJvNAWpHq9yrPXVi9GNgUjOPNs6lvylp9TI%2FutsZYDc%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAg03t4YRPkTYF_NTbDkcp6kCVj25iDDNks5uDnvdgaJpZM4VEcJ_&data=01%7C01%7Ctyt3%40pitt.edu%7Cf952139c78a64477251508d5e2b8d108%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1&sdata=JU7d%2F37u8KKuUQrGW3nz3S6RFBeSLhGYAXSBdlvN1Qk%3D&reserved=0.