Skip to content
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

Check the ParseError property (line, linepos, filepos) members if the exact line could be extracted in case of error #10

Open
adojos opened this issue Oct 6, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@adojos
Copy link
Owner

adojos commented Oct 6, 2019

No description provided.

@adojos adojos added the enhancement New feature or request label Oct 6, 2019
@kenzinotech
Copy link

kenzinotech commented Mar 2, 2022

Good day. This is a very great project. I downloaded it and tried it and it works. Please I would like to ask if it is possible to extract some elements with date tags before the error line or error tag. That way it would be easy to use the date to effect correction on the affected forms.
Here is an example below.
In this case, the error occurred after a date element. Using this date element would be easier to go to the specific date and edit the form on the database before exporting another xml.
image

@adojos
Copy link
Owner Author

adojos commented Mar 3, 2022

Hello Kenzinotech,
Thanks for your interest and compliments! I reviewed your enhancement requirement, but unfortunately, you are requesting a feature that is very specific to your needs but it does not serve other users. As you may agree this tool is for any kind of XML and XSD, we cannot add a feature that is specific to one kind of file as is the your case here. Hope you understand.
I would suggest to use the XPath produced by tool to locate the problem line in you XML. In case of error, the tool outputs the XPath of the element which has problem like this .... XPath Value :/book/cost[1]
You can use this XPath to find the problem element.
Once again thanks for your understanding, wish I was able to help more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants