Replies: 7 comments
-
Perhaps the easiest thing to do is to enter the isNamespaceAware parameters?
|
Beta Was this translation helpful? Give feedback.
-
So you mean that you have one file format with path
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
Hello @pdvrieze can I ask how is possible to customize the policy to ignore unknown fields, log them or throw an exception? Thank you |
Beta Was this translation helpful? Give feedback.
-
Found it!
or
|
Beta Was this translation helpful? Give feedback.
-
With this one you can even handle renames (or incorrect namespaces). |
Beta Was this translation helpful? Give feedback.
-
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
extension
but it is still read and so themtb:scale
line crashes.Is it possible for the line to ignore the inside of a tag?
Beta Was this translation helpful? Give feedback.
All reactions