Replies: 7 comments
|
Perhaps the easiest thing to do is to enter the isNamespaceAware parameters?
|
|
So you mean that you have one file format with path
|
|
I want to parse GPX files, but I don't know who exported the files and depending on the site there is data added in the extension. |
|
@ravenfeld You can configure your policy to handle unknown tags/attributes (either by mapping them to a field, ignore them, log them, or throw an exception). That should deal with crashes. Alternatively it is possible to have What neither option does is give you access to data inside the extension in a typesafe way. |
|
Hello @pdvrieze can I ask how is possible to customize the policy to ignore unknown fields, log them or throw an exception? Thank you |
|
Found it! or |
With this one you can even handle renames (or incorrect namespaces). |
Uh oh!
There was an error while loading. Please reload this page.
Hello, I'm trying to make a GPX file parser but I'm getting stuck because some sites send this style of tag.
At the moment I don't need the information in the
extensionbut it is still read and so themtb:scaleline crashes.Is it possible for the line to ignore the inside of a tag?
All reactions