Added additional check for local tag name. #58
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am having problems with parsing sheets with "AlternateContent" tags.
For example:
<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"> <mc:Choice Requires="x14"> <controls> <mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"> <mc:Choice Requires="x14"> <control name="Check Box 47" r:id="rId4" shapeId="47151"> <controlPr autoFill="0" autoLine="0" autoPict="0" defaultSize="0"> <anchor moveWithCells="1"> <from> <xdr:col>15</xdr:col> <xdr:colOff>0</xdr:colOff> <xdr:row>85</xdr:row> <xdr:rowOff>0</xdr:rowOff> </from> <to> <xdr:col>15</xdr:col> <xdr:colOff>247650</xdr:colOff> <xdr:row>85</xdr:row> <xdr:rowOff>0</xdr:rowOff> </to> </anchor> </controlPr> </control> </mc:Choice> </mc:AlternateContent> </controls> </mc:Choice> </mc:AlternateContent>
In this case, the
<xdr:row>
tag is mistaken for a regular row tag:<row customFormat="1" hidden="1" ht="15" r="1" s="31" spans="1:32">
When you try to parse a value for "currentRow" from the "r" element, you get "NullpointerException".