-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Parsing USPTO XML file #49
Comments
Also facing issues with this block of xml. <parties>
<applicants>
<applicant sequence="00" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Gellis</last-name>
<first-name>David</first-name>
<address>
<city>Stowe</city>
<state>VT</state>
<country>US</country>
</address>
</addressbook>
<nationality>
<country>US</country>
</nationality>
<residence>
<country>US</country>
</residence>
</applicant>
<applicant sequence="01" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Shaanan</last-name>
<first-name>Gad</first-name>
<address>
<city>La Jolla</city>
<state>CA</state>
<country>US</country>
</address>
</addressbook>
<nationality>
<country>US</country>
</nationality>
<residence>
<country>US</country>
</residence>
</applicant>
<applicant sequence="02" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Duval</last-name>
<first-name>Francois</first-name>
<address>
<city>Terrebonne</city>
<country>CA</country>
</address>
</addressbook>
<nationality>
<country>CA</country>
</nationality>
<residence>
<country>CA</country>
</residence>
</applicant>
<applicant sequence="03" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Debeau</last-name>
<first-name>Serge</first-name>
<address>
<city>Laval</city>
<country>CA</country>
</address>
</addressbook>
<nationality>
<country>CA</country>
</nationality>
<residence>
<country>CA</country>
</residence>
</applicant>
<applicant sequence="04" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Brousseau</last-name>
<first-name>Ivan</first-name>
<address>
<city>Montreal</city>
<country>CA</country>
</address>
</addressbook>
<nationality>
<country>CA</country>
</nationality>
<residence>
<country>CA</country>
</residence>
</applicant>
</applicants>
<correspondence-address>
<addressbook>
<name>Peter D. Aufrichtig;Aufrichtig Stein & Aufrichtig, P.C.</name>
<address>
<address-1>5th Floor</address-1>
<address-2>300 East 42nd Street</address-2>
<city>New York</city>
<state>NY</state>
<postcode>10017</postcode>
<country>US</country>
</address>
</addressbook>
</correspondence-address>
</parties> |
Hi. Can you provide a snippet ( or better yet: a failing unit test ) to show what's not working right? Thank you! |
Okay so more background. I am trying to parse USPTO xml files from the following link. I had to slice the xml as follows,
my code is as follows
and the output,
This seems to be a new error. |
I solved the above error about the path being too long by adding a try/except. |
Also note that in my 1.10.0 version, I can parse the file without issue (Python 3) while my Python 2 1.11.0 is what had thrown the original error. |
This looks like a limitation on Windows as well as the problem described in #87 |
Hello,
I have an XML snippet below that does not seem to be parsing well with untangle (1.1.1). I solved my problem via
.replace(<claim-text>,'')
on the the<claim-text>
and</claim-text>
tags to create a block of text to work with.Thank you,
David
The text was updated successfully, but these errors were encountered: